This could be updated to using `MCString*` functions instead (`GetNativeCharAtIndex` and `SubstringIsEqualTo`)