Updated hw0.cpp: Updated the parsing mechanism allowing for more variations of commands