fix String.prototype.trim() bug