If you're typing "theyhad" but noticing a red underline, don't fret! The correct spelling is actually "they had". Those two words, when properly separated, convey the intended meaning. So rest assured, separating "they" and "had" is the correct approach.