title: Find a specific word in a string Python
body: <p>I am making a Discord bot who reacts to certain words, the problem is that my bot reacts to a set of characters that match and not the word itself.</p>
  <p>For example:</p>
  <pre><code>words = [&quot;example1&quot;, &quot;example2&quot;]
  for x in words:
      if x in message.content.lower():
           message.channel.send(&quot;yes&quot;)
  </code></pre>
  <p>My expected reactions:<br />
  1st message: example1    bot: &quot;yes&quot;<br />
  2nd message: aaaexample1aaa     bot: should do nothing but in reality the bot responds with: &quot;yes&quot;<br />
  3rd message: example1aaa  bot: should do nothing but in reality the bot responds with: &quot;yes&quot;</p>