strip off fqdn if matching