It's a common misspelling to write it as one word, but the correct way is always with a space between "thank" and "you".