Added shim for String.trim() in IE8.