Added code to check for non-existent command string