Added in String.trim shim for IE8, fails without this.