recognizes words in a string without spaces