Lets say I have two strings:
string s1 = \"hello\"; string s2 = \"hello world\";
Is there a way I can get a string s3 = \" world\";>
string s3 = \" world\";>
Use string s3 = s2.Replace(s1, "");
string s3 = s2.Replace(s1, "");
EDIT: Note that all occurrences of s1 in s2 will be absent from s3. Make sure to carefully consider the comments on this post to confirm this is your desired result, for example the scenarios mentioned in @mellamokb's comment.
s1
s2
s3