use ToLower on keys before building the replacer