Cleaning hash map keys