Remove newlines from result