Add name canonicalization function.