Move error message generation into topdomain check method

Change isalpha() to a-z check to avoid locale issues