serial.write output GPS sentence formation and concatenation

I have an application that I need to send GPS data over a wireless link (XBee) to a laptop running a Google Earth overlay software package called GooPs (http://goopstechnologies.com/). This software allows the use of a via a TCP/IP socket to allow the user to select and connect to several different data sources and display their data.

The format that it uses for the incoming data is:

@:

Example:
joe@joescar:$GPRMC,130043,A,3731.5300,N,12221.2400,W,1.0,0.0,082507,0.0,E,A*01

More information can be found in the FAQ here:

http://goopstechnologies.com/?page_id=20#How_do_I_Add_a_remote_vehicle

I have generated a sketch that almost gets me to a solution (attached).

The problem is that it appears that there is a in the data stream that causes GooPs to not properly parse the GPS data that follows the @:

Here is an example of what I see on a terminal program connected to the output of the ARDUINO UNO:

joe@joescar:$GPGGA,165007.000,3401.8519,N,10429.0035,W,2,10,0.87,569.6,M,-32.5,M,0000,000058
joe@joescar:$GPRMC,165007.000,A,3401.8519,N,10429.0035,W,0.15,226.19,231017,,,D
7B

Here is what I would like it to be:

joe@joescar:$GPGGA,165007.000,3401.8519,N,10429.0035,W,2,10,0.87,569.6,M,-32.5,M,0000,000058
joe@joescar:$GPRMC,165007.000,A,3401.8519,N,10429.0035,W,0.15,226.19,231017,,,D
7B

I have tried putting the data in an array and using remove to eliminate the before sending it out and that did not work. I have tried using the standard Serial.println() and Serial.print() without sucess.

Any assistance or observations will be greatly appreciated.

GPS_Tracker_for_Goops_23Oct17_v1c.ino (3.03 KB)