autofocus on autocomplete, trim query term