Remove spaces from empty lines in test