Fix run command when command is a subset of user input string.

For example: help <-> help_me

The original implemenation run help command if user input
is help_me.