Thanks this really helped, I ended up just using the s.c_str().