Convert char* to c++ strings