In UDP communication with GSM module there is a "PacketSize" configuration. You send data, but they are held until PacketSize has reached.
So if Packetsize is 100 for example and you send strings of 10 bytes, only after 10 strings the whole packet is sent.
I don't know this library, but maybe what I wrote is a hint for you.
Marco