changing to C++ strings