fix with string to c_str casting