Check if string cointains another string : <p>am trying to do a code which would check if my string contains a substring. </p>

<p>However, I have specific needs and String.contains does not match my needs. Parameter "comp" and String "computer" should return false, parameter "comp" and String "comp science" should also return false and parameter "comp" and String "comp, science" should return true. Thanks</p>
