using System.Text.RegularExpressions; string s = "Мама мыла раму. "; string pattern = @"\s+"; string target = " "; Regex regex = new Regex(pattern); string result = regex.Replace(s, target);