fix #7111, tab completion where the first item is ""

also use start() instead of 1
fix common_prefix on unicode strings
use next instead of nextind
Merge pull request #7121 from JuliaLang/jb/7111

fix #7111, tab completion where the first item is ""