unity delete specific text in a string

C#
public string strOne = "Hello World";
public string strTwo = " World";

public void DeleteStrTwoFromStrOne()
{
	strOne = strOne.Replace(strTwo, ""); //strOne = "Hello" now
}
Source

Also in C#: