> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fiddler.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# truncate

> truncate

**value** `string` *required*

The string to truncate.

**maxLen** `number`

Maximum allowed length (defaults to
MAX\_CONTENT\_LENGTH).

**return**

The original string if short enough, or a truncated copy.
