public function is($string) { if (u::strcmp($this->string, $string)) { return $this->returnOrThrow(); } return $this->returnOrThrow('The string doesn\'t match'); }