public function setSeparator($separator) { if (!is_null($separator)) { $this->separator = trim($separator); } return $this; }