add str_to_lower function, ignore DNS domain name case