Improve length checking for nicknames