using System.Collections.Generic;
public static void Main()
var str = "DELETE Autorizacoes WHERE AutorizacaoId = '12FA4625000' AND Data = '01/29/2018'";
var words = str.Split(' ');
var result = string.Empty;
for(var i = 0; i < words.Length; i++)
result += result.Length > 0 ? "."+ words[i+1] : words[i+1];
result = result.Replace("'", "");
Console.WriteLine(result);