Converted from use of C-strings to C++ strings.