Trim domain in whitelist configuration, to support 'domain-1, domain-2' besides 'domain-1,domain-2'