using System;
public class Program
{
public static void Main()
string text = "Replace ---- Test --- 123 --";
text = text.Replace("--", "-");
Console.WriteLine("Result: " + text);
}