autosuggest and substring history