remove spaces from empty line