core: make StringIndex case insensitive