Error handling for commands.

If an incorrect command string is entered,
clear the command string and start over.