undo mistakenly replaced text