search proper str and don't search for empty string