use .inspect method rather than .to_s method on @search_elements, for backward compatibility on Ruby 1.8