fixed string case bug in sentence search