original_string: public static function fromString($str, $encoding = self::ENCODING){
  		
  		if(!\is_string($str)){
  			throw new \InvalidArgumentException('$str must be a PHP string');
  		}
  		
  		if(!\is_string($encoding)){
  			throw new \InvalidArgumentException('$encoding must be a string');
  		}
  		
  		return new static($str, $encoding);
  		
  	}
code: public static function fromString($str, $encoding = self::ENCODING){
  		
  		if(!\is_string($str)){
  			throw new \InvalidArgumentException('$str must be a PHP string');
  		}
  		
  		if(!\is_string($encoding)){
  			throw new \InvalidArgumentException('$encoding must be a string');
  		}
  		
  		return new static($str, $encoding);
  		
  	}
code_tokens: public static function fromString ( $ str , $ encoding = self :: ENCODING ) { if ( ! \ is_string ( $ str ) ) { throw new \ InvalidArgumentException ( '$str must be a PHP string' ) ; } if ( ! \ is_string ( $ encoding ) ) { throw new \ InvalidArgumentException ( '$encoding must be a string' ) ; } return new static ( $ str , $ encoding ) ; }
docstring: Create a String from a PHP string
  @param string $str
  @param string $encoding default is UTF-8
  @return \static
docstring_tokens: Create a String from a PHP string