change char* to string