C++: add String::str() function (#4234)

for convenience
1 file changed