Genericized by adding searchString variable