Fixed string to const char* conversion error