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

Code Example 1

public string testString = "I hope this help you";
public string otherCase = "I hope";

public void SearchForText()
{
	if(testString.Contains("you"))
    {
      Debug.Log("The variable testString contains the word you")
    }
  	if(testString.Contains(otherCase))
    {
     	Debug.Log("The variable testString contains the value of the variable otherCase")
    }
}

Learn ReactJs, React Native from akashmittal.com