Auto-complete fills in longest common substring of candidates