I don't believe this is possible when printing text to the command line interface. (unless your using some special third party library)
what is your name? mom
ERROR: name must be atleast 3 characters
Isn't mom 3 characters long. I think you want to print:
"ERROR: Name must be greater than three characters in length"