performs case insensitive search