Edit Class Section

When I gave students in 2 different periods the code to join my classes, I gave them the opposite period #'s code. I need to rename the classes to match the period # of the students who joined. I can’t figure out how to edit the name of a class section. Thanks for any ideas