For a player to write up their own name.
Just create an event, go to the event commands page 3. Choose the "Name Input Processing...", then you select the ID of the player that the name is going to change. The max characters is the amount of letters the name is allowed to have.