Parsing command text to command objects