How to check if a string contains a word.