string testStr = "XXXXXXXXXXX ! XXXXXXXXXXX !";
int index1=testStr.IndexOf('!');
string str = testStr.Substring(0, index1+1);
string str1 = testStr.Substring(index1 + 2).TrimStart();
public string SplitString(string strToSplit)
{
string strReturn=string.empty;
While(strToSplit.Length>0)
{
strReturn+=strToSplit.SubString(i,(strToSplit.Length>=200?200:strToSplit.Length))+"********";
strToSplit=strToSplit.SubString((strToSplit.Length>=200?200:strToSplit.Length)-1);
}return strReturn;
}