Removing spurious newlines