fixing assigning to const char *