I'm look for an effective way to remove unwanted space in a string. Right down to the point, this is the string from HTML i'm dealing with:
<h1 class="notranslate" data-se="item-name">
Evil Skeptic
</h1>
It appears on this page. So if you run this in console:
alert(document.getElementsByClassName('notranslate')[1].innerHTML);
it would alert a strange looking text, which is unwanted. Is there an effective way to remove this extra spacing?