Switch to String.prototype.trim() for whitespace trimming.