title: string comparison "=" != "+" , incorrect results
body: <p>Task is to check whether string results true or false for following given condition:</p>
  
  <p>If a letter a to z occurs it must have '+' before and after the particular letter
  This works fine expect the case when '=' comes before or after the letter.
  Why this condition is wrong for '=' ? 
  This code returns true for these strings 
  Thanks</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function SimpleSymbols(str) { 
      var temp=str.split("")
      if(temp.length==1 || temp.length==2 )
      return false;
      for(i=0;i&lt;temp.length;i++){
          if(temp[i]&gt;='a' &amp;&amp; temp[i]&lt;='z'){
              if(i===0 || i===(temp.length-1)|| 
              (temp[i-1]!=='+' &amp;&amp; temp[i+1]!=='+')){
                  return false;
              }   
          }
      } 
    return true; 
  }
     </code></pre>
  </div>
  </div>
  </p>