reading sms

what i really want to achieve is
to switch on the on board led when i sms the word 'on' to the shield and
off to turn the led off ,in stand alone mode

What does "in stand alone mode" mean?

Use strcmp() to see if data and "on" are equal. If so, turn the LED on.
Use strcmp() to see if data and "off" are equal. If so, turn the LED off.