JQuery trim() function to enable client-validation in IE8