Typo here on "right"-> rigth - however, at least one out of "stricmp" or "strcasecmp" should be available on this platform, but this is just the kind of annoyance that would go away if the function below were written in ffi-enabled JavaScript - could you explain which entries in the function would be difficult to translate?