If duplicate keys are encountered, overwrite earlier values with the latest value.
Also, reject them in strings.