Using for and if loops to create a function that looks for a word in a string.