String.trim() is not supported in IE8