change foo(string bar) to foo(const char * bar) for foo()s only being called with...