modified case-insensitive search