# Trim

> Trims leading and trailing whitespace from string input before assignment.

[API reference](/docs/api/index.md) › [Model](/docs/extensions/model/reference/index.md) › [Attribute](/docs/extensions/model/reference/attribute/index.md) › Trim

| final class | `UIAwesome\Model\Attribute\Trim` |
| --- | --- |
| Source | [`src/Attribute/Trim.php`](https://github.com/ui-awesome/model/blob/main/src/Attribute/Trim.php#L12) |

Trims leading and trailing whitespace from string input before assignment.