fix trim issue in IE 8