String.prototype.trim polyfill