How do I change the folder's name back to what it was before?
There are two ways:
Follow the steps in this tutorials.
Go to the Windows Explorer (e.g., at the top of the window where File, Edit, View, etc. are located) and choose the "Undo" option under the Edit menu.