remove spaces in empty lines