use lang.trim instead of native trim for IE8