Added clean function for Key