public function first(int $count): Utility
    {
        if ($count < 0) {
            return new static('', $this->encoding);
        }

        return $this->substring(0, $count);
    }
public function first(int $count): Utility
    {
        if ($count < 0) {
            return new static('', $this->encoding);
        }

        return $this->substring(0, $count);
    }
public function first ( int $ count ) : Utility { if ( $ count < 0 ) { return new static ( '' , $ this -> encoding ) ; } return $ this -> substring ( 0 , $ count ) ; }
Get the first x characters from the string

@param int $count
@return Utility
Get the first x characters from the string