Compare 2 string

JaBa:
Tried if(text.indexOf(color) > 0)?

inString function. - Exhibition - Arduino Forum

That would not work if the text is "black is my favorite color", it would return 0 which you exclude with strictly greater. The function returns -1 if not found, that is what needs to be tested.

Obviously our recommendation would be to not use Strings with a capital S and go lower level with char arrays.