Autocomplete: Use `$.trim` instead of `jQuery.trim` for consistency

Fixes #10525