clean spacing
correct newlines as per sql