public function delimit($delimiter)
{
$regexEncoding = $this->regexEncoding();
$this->regexEncoding($this->encoding);
$str = $this->eregReplace('\\B([A-Z])', '-\\1', $this->trim());
$str = \mb_strtolower($str, $this->encoding);
$str = $this->eregReplace('[-_\\s]+', $delimiter, $str);
$this->regexEncoding($regexEncoding);
return static::create($str, $this->encoding);
}