To rename your team, go to Settings on the upper right corner and open Teams tab. Select the team which you want to rename. Click on team’s name and a window Edit team name will appear. Write the new team name and click the green Update button.
Please note, you cannot rename the team to which you have been invited by another colleague. Only they have the authority to do so.