Remove extra newlines from splits