Search the smaller common string for auto-complete when more than one command is filtered.
Cosmetics and comments.