title: Contains not finding partial string in List or Set
body: <p>I currently have a Set that contains three strings (<code>"car"</code>, <code>"two dollar"</code>, <code>"foo"</code>). I then execute the following against a passed <code>HashMap&lt;String, Double&gt;</code>.</p>
  
  <pre><code>if (getSet().contains(currentHashMapItem.getKey()) == true) {
      System.out.println(currentHashMapItem.getKey());
  }
  </code></pre>
  
  <p>The first key is <code>"car"</code>, that matches as expected and displays. However, the second key is <code>"dollar"</code>, but doesn't display. Now my understanding of how contains works is it will return true if the string it is comparing exists in the Set that's being returned in <code>getSet()</code>, but no dice. Even tried an <code>ArrayList&lt;String&gt;</code> as well with no luck. Anyone ran into this before? Am I trying to cut too sharp a corner and forced to use a regex or iterator loop?</p>