espacio de recorte en jQuery
var str = " Hello World! ";
alert(str.trim());
Unusual Unicorn
var str = " Hello World! ";
alert(str.trim());