Add shim for String `trim`

IE8 doesn't support `trim`