Ah, the modern age of programming against an API that involves case-insensitivity.
How does it do the comparison?
Comparing upper case? Comparing lower case? Comparing Unicode fold case? Something else?
Documentation needs to be specific about what “case-insensitive” means.