Many of the users suffer when it comes to change the name of your mac system.
Step 1: In the Menu bar, go to  > System Preferences…
Step 2: Click on Sharing.
Step 3: In the Computer Name box, type in the name you want to use for your computer.
Step 4: Close the window, and you’re done.
Feel free to ask if you have any question.