I never said that works with vars and string with sed will be so hard.

i'm not a C script monster but,crap, combining strings vars and text is a mess, i realy suggest to implement something like

var myString = "What the hell you gain "+ string(myNumericVar) +" point !! "+ cheatDetected;