Cleanup to remove extra newlines.