If you are referring to validating a username, I suggest you try to register a new username in the extremes of short and long etc until you get the actual parameters. The register page might even have the limits enforced by javascript, so you can check there as well.
I believe the username can consist of letters, numbers and sometimes spaces (signified by \s in IRC)