Use jQuery $.trim() method for IE8 & below support