public static function limitExact($value, $limit = 100, $end = '...')
        {
            if (static::length($value) <= $limit) {
                return $value;
            }

            $limit -= static::length($end);

            return static::limit($value, $limit, $end);
        }
public static function limitExact($value, $limit = 100, $end = '...')
        {
            if (static::length($value) <= $limit) {
                return $value;
            }

            $limit -= static::length($end);

            return static::limit($value, $limit, $end);
        }
public static function limitExact ( $ value , $ limit = 100 , $ end = '...' ) { if ( static :: length ( $ value ) <= $ limit ) { return $ value ; } $ limit -= static :: length ( $ end ) ; return static :: limit ( $ value , $ limit , $ end ) ; }
Limit the number of chracters in a string including custom ending

<code>
// Returns "hello..."
echo Inflector::limitExact('hello word', 9);

// Limit the number of characters and append a custom ending
echo Inflector::limitExact('hello word', 9, '---');
</code>

@param  string  $value
@param  int     $limit
@param  string  $end
@return string
Limit the number of chracters in a string including custom ending