Fix toString override problem of GString

In some cases we can't override toString() method of GString