Autocomplete and partial matching, check the last token