add string native trim method

my ua is "Mozilla/5.0 (Linux; U; Android 2.1; zh-cn; D530 Build/ERD79) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17"
And in af, there are some place use "trim" just native, so my app can't run.