src/Primitive/String/String.php
public function cut($offset, $length = null, $encoding = 'UTF-8')
    {
        return new static(
            mb_substr(
                $this->string,
                $this->getIntegerable($offset),
                $this->getIntegerable($length),
                $this->retrieveValue($encoding)
            )
        );
    }
public function cut($offset, $length = null, $encoding = 'UTF-8')
    {
        return new static(
            mb_substr(
                $this->string,
                $this->getIntegerable($offset),
                $this->getIntegerable($length),
                $this->retrieveValue($encoding)
            )
        );
    }
Get part of String

@param int|IntegerContract $offset
@param int|IntegerContract|null $length
@param string|StringContract $encoding
@return static