remove unnecessary call to c_str()