/** * Trims whitespaces or defined characters from the full string. * * @param string $charList The characters to trim. * * @return String The string trimmed. */ public function trim($charList = null) { return new static(static::$helper->trim($this->string, $charList)); }