removed titleize and made queries case insensitive