handle escaped $ in GString