Shorter RegExp for trim polyfill. Fixes #617