correct string to char* definition