You're welcome. 
To check if the player entered text at all, you could do:
Code: ags

To check if the player entered text at all, you could do:
//...
if (StrComp(plrname, "") != 0) { // if player entered text
StrCopy(character[EGO].name, plrname); // copy text from variable to character's name
}
//...