Add string trim support for IE8.