Oops: convert from GString to Java