private string ToUppercase(string input) { var regex = new Regex(@"(?<=[A-Z])(?=[A-Z][a-z])|(?<=[^A-Z])(?=[A-Z])"); return regex.Replace(input, " "); }