added support for removing duplicate letters for generating
the key from the keyword