use string in preference to char*

request from Ben