public function search($string, $reverse = false) { if ($reverse) { return strrpos($this->data, $string); } return strpos($this->data, $string); }