can parse a string of commands by their string representation. to be used in conjuction with user input