title: JavaScript string comparison fails in Node
body: <p>I'm comparing two strings. For some reason no matter how I try to compare them, it appears as if they're not equal but they are.</p>
  
  <pre><code>logger.trace("eval Str: "+util.inspect(evalStr));
  logger.trace("Is next():" + evalStr == "next()");
  logger.trace("Is next():" + evalStr.valueOf() == "next()".valueOf());
  logger.trace(toHex(evalStr));
  logger.trace(toHex("next()"));
  
  2016-10-02T12:10:55.446-04:00 - trace: eval Str: 'next()'
  2016-10-02T12:10:55.447-04:00 - trace: false
  2016-10-02T12:10:55.448-04:00 - trace: false
  2016-10-02T12:10:55.448-04:00 - trace: 6e6578742829
  2016-10-02T12:10:55.449-04:00 - trace: 6e6578742829
  
  
  function toHex(str) {
      var hex = '';
      for(var i=0;i&lt;str.length;i++) {
          hex += ''+str.charCodeAt(i).toString(16);
      }
      return hex;
  }
  </code></pre>