Program no longer crashes when the user inputs an empty command.