fixing char* to cpp strings