title: finding a word in a string without spaces
body: <p>I have a string without space. eg <code>system-gnome-theme-60.0.2-1.el6</code>. 
  I have to check in 100 other such strings (without space) which have a few of the previously specified words; e.g. <code>gnome</code>, <code>samba</code>.</p>
  
  <p>How do I do it in python?</p>
  
  <p>There can be any prefix or suffix in the string attached with <code>samba</code>. I have to detect them, what do I do?</p>
  
  <p>Currently I have done this:</p>
  
  <pre><code>for x in array_actual:
      for y in array_config:
          print x.startswith(y)
          print ans
  </code></pre>
  
  <p>which is completely wrong because it is checking only the first word of the string. That word can be anywhere, between any text.</p>