remove spurious newlines