# trim

Source: https://zotonic.com/docs/1961/trim

URI: https://zotonic.com/id/1961

Language: en



Removes whitespace at the start and end of a string.

For example:

```django
{{ value|trim }}
```

When the value is `"   hello   "` then the output is `"hello"`.

Internally, this calls `z_string:trim/1` to perform the trimming.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1961?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1961?language=en>)
