remove duplicate empty lines