If you looking for quick and nasty, and just adding and iterating, you can pad the keys with addtional spaces to make them uniqure. Then just trim on retrieval.