title: string objects comparison always returning false
body: <p>Here is the code that I am executing:</p>
  
  <pre><code>filterIssues: function(objectKey, text){
      var view = this;
      var keys = objectKey.split(".");
      var attributeKey = keys[0];
      var attributeName;
      if (keys.length &gt; 1){
          attributeName = keys[1];
      }
      view.issues.each(function(issue){
          var value = issue.get(attributeKey);
          console.log(text);
  
          if (value === undefined || value === null){
              issue.trigger("hide");
              return;
          }
  
          if (attributeName !== undefined){
              value = value[attributeName];
          }
  
          if(value !== undefined){
              var matchedText = value.substring(0, text.length - 1);
              if ( matchedText === text){
                  issue.trigger("show");
                  console.log(value);  
                  return;     
              }
          }
          issue.trigger("hide");
      });
  }     
  </code></pre>
  
  <p>The <code>matchedText == text</code> always returns <code>false</code>. </p>
  
  <p>This is what I get when I play around with the console:</p>
  
  <pre><code>&gt; matchedText
  "sande"
  &gt; text
  "sande"
  &gt; typeof(text)
  "string"
  &gt; typeof(matchedText)
  "string"
  &gt; matchedText === text
  false
  &gt; matchedText == text
  false
  </code></pre>
  
  <p>I do realize that and <code>===</code> will always check if both the objects are the same and I have read
  <a href="https://stackoverflow.com/questions/16149676/javascript-equal-operations-anomalies">JavaScript equal operations anomalies</a> and <a href="https://stackoverflow.com/questions/15099599/javascript-string-equality">Javascript string equality</a>.</p>
  
  <p>Is there something wrong in the code that I am overlooking?</p>