Checking User Input for Program Commands