When you put mouse over your contact for a second, the contact's Name Card will be displayed. Click "View/Edit":
You can edit the contact's name that displayed on the contacts list and conversation window and community belonged to: