Summary
Char()
Concat()
Format()
IndexOf()
Length()
Lowercase()
Propercase()
RegExMatch()
ReplaceList()
Replace()
Substring()
StringToHex()
Trim()
Uppercase()
Removes white space from the beginning and end of a string.
| Marketing Cloud Engagement | ✅ Yes |
| Marketing Cloud Next | ✅ Yes |
This function became available in Marketing Cloud Next during the Summer ’26 release (API version 67.0).
1Trim(sourceString)The Trim(sourceString) function has one parameter:
sourceString (string): Required. The string to remove whitespace from.To use the function, pass it a string to trim.
1%%[
2 Var @address, @addressClean
3 Set @address = " דרך השלום 5, תל אביב-יפו, ישראל "
4 Set @addressClean = Trim(@address)
5]%%The function returns the provided string with whitespace removed from the beginning and end: דרך השלום 5, תל אביב-יפו, ישראל