Maybe strstr makes life easier.
And as mentioned Robin's updated Serial Input Basics is always a good read.