To rename a customer on the Customers page, use the cog icon at the top right of the page to select "Merge / Rename Customers", then use the pencil symbol next to the customer name to rename it.
To merge two customers into one, see this article: How do I merge customers?