Retrieve Message from the GSM module

I want to get the actual message sent by the user to the GSM module then compare it to the words (strings/characters) used for my conditions. My code can get characters, but not sure if it was the actual message received or just a part of AT response.

I'm using SIM900D GSM module and Gizduino board. Kindly help me with the codes please...

My code can get characters, but not sure if it was the actual message received or just a part of AT response.

When you post code, please don't use 0 point font. It makes it really hard to read, for those of us with older eyes.

Posting some sample output from that code would be good, too. "The actual message" and "part for the AT response" encompass the same thing. One is a subset of the other, however.