Updated g_string function for SVGAKIT