Use `MCStringFirstIndexOfChar()` instead of `strchr()`. In a general way, you should never use `strchr()` combined with `MCStringGetCString()`