added function search_string and tests with rspec