How to make characters say readers customized character name

So this is the input code that let’s readers type in a response:

And this is how you would have characters talk about the response:

And here is how you would get that chosen name on top of the character’s speech bubble: