Check out example codes for "unity delete specific text in a string". It will help you in understanding the concepts better.

Code Example 1

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

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

Learn ReactJs, React Native from akashmittal.com