changed the commands so that execute and undo returns String