using uCalcSoftware; var uc = new uCalc(); var t = new uCalc.Transformer(); // Convert any quote character found to a double quote t.FromTo("{@QuoteChar}", """ " """); string input = """ msg = 'Hello'; val = "World"; """; Console.WriteLine(t.Transform(input));