unity delete specific text in a string

Code Example - unity delete specific text in a string

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

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