Can't use String.prototype.trim because IE doesn't support it.