replace string struct with char *