And what If I want the program to retry the hero's name choosing if it isn't at least 3 characters?
I heard about some kind of pen (?) that can do this but I don't really have clue. The only thing I could think of right now is making a loop then break it if the name doesn't have 3 characters.
Instead of breaking the loop if the name doesn't have 3 characters, you could make the loop repeat until the name input has 3 or more characters and then break.