You can also use the replace solution above to add a trim function to the JavaScript String.prototype:
By Badie96 at Apr 22 2021