remove spaces from empty lines