any conscructive help is welcome ....

the idea is to compare gsmbuffer string with XYZ letter combination !!!
just give me idea how to work this out!!!!