SMS comparison problem

Look at this tutorial: Serial Input Basics - updated to learn how to read in a string and then act upon it. The tutorial is designed for Serial input, but will work for SMS input just as well.