now prioritizing search strings properly