how to find end of string?

Hello all,

i’m using msp430 microcontroller,using software uart i’m receiving data from gps to pc through microcontroller,

do

{

RX_Ready();

_BIS_SR(LPM3_bits+GIE);

buffer[index] = RXTXData;

index++;

}while(RXTXData!=‘\0’);

This is my main program.it’s working fine for all NMEA message but some issues coming to "Antenna status"message.

for example:instead of $ACSCT,OPEN*7C, i’m receiving ,OPEN *7C only,i think while condition is not suitable to this .i tried

while(RXTXData!=0x0A);–>new line,while(RXTXData!=0x0D);–>carriage reutrn,that time i got junk values with NMEA message.

how to solve this issue?