Faster JavaScript Trim
http://blog.stevenlevithan.com/archives/faster-trim-javascript
"After seeing a particularly bad trim implementation, I decided to do a little research towards finding the most efficient approach."