Currently Prime's ES5 String#trim fallback is pretty basic. There are known issues with using a regexp and \s. See ES5Shim's String#string implementation here:
Closing, as the split-generics branch is now on master. string/trim.js is now allowed to behave in any way we want it to.