Strings equal but different second javascript
<p>I can not understand why javascript says that two identical strings are different!</p>

<pre><code>if (mess == 'textnothing') { /* mess is reported by ajax, what I am writing in a form */
    document.write('equal');
} else {
    document.write(mess);
}
</code></pre>

<p>What comes out? 'textnothing' (without quotation marks) that is what I write in the form!
Why is this happening? Should appear 'equal' (without quotation marks)!</p>
