title: Having trouble accessing keys in a map in Groovy
body: <p>I am converting a string to map, and print the keys and values and it all looks good. I print the keys using keySet() and their values using values() and all show up as expected.
  However, when I try to access any of the keys using get() or checking using containsKey() it fails and returns false.
  Here are the print statements and results:</p>
  <pre><code>println(&quot;====== the keys and values: &quot; + dlmap.keySet() + &quot;   &quot; + dlmap.values())
  Which prints:
  ====== the keys and values: [ &quot;URL&quot;, &quot;DOWNLOAD_FILE&quot;, &quot;PROCESS_FILE&quot;] [&quot;www.treasury.gov/ofac/downloads&quot;, &quot;sdn_xml.zip&quot;, &quot;sdn.xml&quot;]
  </code></pre>
  <p>but, the none of the keys can be accessed. Here is an example:</p>
  <pre><code>println(&quot;====== contains key URL: &quot; + dlmap.containsKey(&quot;URL&quot;))
  which prints:  
  ====== contains key URL: false
  </code></pre>
  <p>I checked the original input string that is converted to map and there are no hidden characters.</p>
  <p>Any help or clue is appreciated.<br />
  Thank you</p>