trim

Removes leading and trailing spaces from a string.

trim(String) → returns string

trim Argument Reference

String string
Required

A string or a variable that contains one

Examples sample code invoking the trim function


Trim

'>' & trim('    CFDocs    ') & '<'

Expected Result: >CFDocs<


Fork me on GitHub