How can I revert back to the status before I made a mistake?

I replaced a certain word with the following function by mistake.
However, I was not able to find the word in these categories.
How can I revert back to the status before I made a mistake?