downcase types before regexes