f: more correct ignore case logic