Is there a way to have "special names" like in Undertale?

I want to do this so that you can't name the protagonist after other characters in the game.
you can place the name command in a loop with conditional branches checking for specific names, only breaking the loop if the name is not one of the other ones
Alright, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-have-special-names-like-in-undertale.149515/