Use jQuery.trim() instead

Internet Explorer 8 or lower doesn't support .trim() so, we use jQuery.trim() instead.