Compare 2 string

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

http://forum.arduino.cc/index.php?topic=8647.0