Is there any way to trim (remove leading/trailing spaces) the input entered by a user into a jQuery auto-completing text box before it is matched
Use jQuery.trim:
jQuery.trim(yourValue);