trim domain name