src/Str.php
public function cutEnd($length) {
		$rawString = mb_substr($this->rawString, 0, $this->length() - $length, $this->charset);

		return new static($rawString, $this->charset);
	}
public function cutEnd($length) {
		$rawString = mb_substr($this->rawString, 0, $this->length() - $length, $this->charset);

		return new static($rawString, $this->charset);
	}
public function cutEnd ( $ length ) { $ rawString = mb_substr ( $ this -> rawString , 0 , $ this -> length ( ) - $ length , $ this -> charset ) ; return new static ( $ rawString , $ this -> charset ) ; }
Removes the specified number of characters from the end of this string

@param int $length the number of characters to remove
@return static a new instance of this class
Removes the specified number of characters from the end of this string