using System; using System.Text.RegularExpressions; public static class ClipboardFusionHelper { public static string ProcessText(string text) { Regex regex = new Regex(@" {2,}"); return regex.Replace(text, " ").Trim(); } }