JS: String.prototype.trim
str.trim()-
Return a new string with begin/end whitespaces removed.
console.assert("\n ab \n".trim() === "ab");
str.trim()Return a new string with begin/end whitespaces removed.
console.assert("\n ab \n".trim() === "ab");