Fixed #89 to handle duplicated keys in the input.
update the wording from "doesn't" to "does not"
Added test cases/code for #89
update the wording from "doesn't" to "does not"