rm empty lines in the end of the spectral_clustering