title: Swift Searching for key words in a string
body: <p>I am creating a simple chat bot using swift 3 in Xcode 8, and have been looking for a way to search for a specific word in a string. </p>
  
  <p>For example:</p>
  
  <p>If the user inputs "I would like to have a cup of coffee please."</p>
  
  <p>The program then checks the string for the word "coffee" then finding "coffee" in the string it then returns bool.</p>
  
  <p>I know that you can do this in python:</p>
  
  <pre><code>phrase = "I would like to have a cup of coffee please."
  if "coffee" in phrase 
      print('hi there')
  </code></pre>
  
  <p>How would you do this in swift 3?</p>
  
  <p>Thanks</p>