const char *cstr = ToNewCString(str); printf("%s", cstr); delete [] (char*)cstr;
printf("%s", str.get());
void printString(nsString &str) {    const char *cstr = ToNewCString(str);    printf("%s", cstr);    delete [] (char*)cstr;}