Methods undo and redo now return String