Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Taking your approach on designing things actually makes it fun, more natural, and overall easier.

— Dominik, Developer

trim Modifier

Returns a string with whitespace removed from the start and end of the string. Supports the removal of unicode whitespace.

string: " This is so sloppy "
{{ string | trim }}
{{ Statamic::modify($string)->trim() }}
This is so sloppy
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →