protected static function __chomp(string $toChomp, string $string) : string
    {
        /** @noinspection PhpParamsInspection */
        $chomp = Lambda::compose(self::lchomp($toChomp), self::rchomp($toChomp));

        return $chomp($string);
    }