When using custom mappings case sensitivity is currently important. This can cause issues when the data has been formatted with names of different cases that need to be compared. Look at possibility of making this non case sensitive and just ensure strings are unique.