Remove redundant newlines