Two same strings aren't equal : <p>I have 2 equal strings, and when I'm doing a console.log() to know if they are equal, I do this:</p>

<pre><code>console.log("message = " + document.getElementsByClassName("hud-chat-message")[i].childNodes[0].innerHTML + " type = " + typeof document.getElementsByClassName("hud-chat-message")[i].childNodes[0].innerHTML)
            console.log("chatbotname = " + Ultimate.bots[name].chatBotName + " type = " + typeof Ultimate.bots[name].chatBotName)
            console.log(document.getElementsByClassName("hud-chat-message")[i].childNodes[0].innerHTML == Ultimate.bots[name].chatBotName)
</code></pre>

<p>And then it says that:</p>

<pre><code>message = &lt;strong&gt;Leaderboard on Discord&lt;/strong&gt;&lt;small&gt; (leaderboard!)&lt;/small&gt;&lt;span class="botTagRegular botTag bot"&gt;BOT&lt;/span&gt; type = string
VM3681:229 chatbotname = &lt;strong&gt;Leaderboard on Discord&lt;/strong&gt;&lt;small&gt; (leaderboard!)&lt;/small&gt;&lt;span class='botTagRegular botTag bot'&gt;BOT&lt;/span&gt; type = string
VM3681:230 false
</code></pre>

<p>Two strings are of the same type and are equals, but it says <code>false</code>, its not equal... Why? What's wrong?
Thanks</p>
