If I have:
string st1 = "this.is.a.string.type";
string st2 = "string";
Is there any built-in String method to remove st2 from st1 if the exact sequence of chars exists in st1? So I want to end up with "this.is.a..type".
string st3 = st1.Replace(st2, string.Empty);
This will work out for you
string st3 = st1.Replace(st2,"");
This will remove all instances of st2 from st1, and return the result