Avoid suscripting static string to char* pointer