Corrected KMeans case for degenerate clusters. Correction of string sanitization