Compare 2 string

Old-fashioned here :wink: If you don't use String (capital S) but character arrays

char text[] = "My color is black";
char color[] = "black";

if(strstr(text, color) != NULL)
{
  // match
}
else
{
  // no match
}

man strstr