title: How to check for a substring in a Hashmap values
body: <p>I have a <code>HashMap&lt;String, String&gt;</code>.</p>
  
  <pre><code>map= {john=a024600000372TPAAY, Jam=Jam is not recognized, Dave=a024600000A1ndhAAB}
  </code></pre>
  
  <p>I want to find if my hashmap has any value which has a substring of "not recognized".</p>
  
  <p>when I tried <code>map.containsValue("not recognized")</code> it returned a false, as it's looking for a value "not recognized", but I should find a way to check for a substring. </p>
  
  <pre><code>map.containsValue("not recognized")
  </code></pre>