Added string trim support to translate.js for IE8.