Add string length check for domain check for extra security.