Fix embedded SQL query whitespaces