Click on the burger icon next to a folder and select the option Rename. Type in the new name of the folder and click on Rename at the bottom.