Trim is not supported on IE8, use regexp instead of it.
Merge pull request #146 from benderjs/issue/145

Trim is not supported on IE8, use regexp instead of it.