tweaked autocomplete to only match keywords shorter than current input