New tutorial - Arduino and SIM900 GSM Modules

In something like this:

if (SIM900.available() > 0){
    c = SIM900.read();
    if (c != '\r') temp = temp + c;
     else {
        //do something with string temp
     }
}