Update Angular.js's trim function

First of all, It's not a big deal.
According to Flagrant Badassery's blog http://blog.stevenlevithan.com/archives/faster-trim-javascript and this comparision http://jsperf.com/trim-function, we can edit a teeny part of the code and make a little more efficency improve.