handle dupe category names by trimming and lowercasing