swap char* for string