Hold loop while reading Serial

Hello. I dont know what I should search for so I post this, probably again.

I have a GSM-module from efcom and would like to read an SMS from the serial buffer. My problem is that I have other things in the main loop directyl afterwards that I attend to. What happens when I read the serial buffer once I get something is that it only reads one character at the time. Is it possible to do like:

loop(){ while(serial.available()) { read entire message and put in a string: SText = SText + serial.read(); } SText = ... (The entire complete message) Continue....


That code will only read one byte at a time. When one arrives in the buffer you are reading it before the others come along. Keep reading until you see the string delimiter.