using System;
using System.Text.RegularExpressions;
public class Program
{
public static void Main()
var oldvalue= "ThisIsTest";
var newValue = Regex.Replace(oldvalue, "([a-z])([A-Z])", "$1 $2");
Console.WriteLine(newValue);
}