To rename a file or folder, click on the object so that it is highlighted in blue. In the top menu of options, you will see the option to rename your selection.
You can also bring up the menu of options by clicking the three verticle dots to the right of the file.
Click "Rename" and enter the new title in the field that appears. Pressing the enter key will save the new name!