Skip to main content

trim

Returns a string with any space characters from the start or end of the string removed

Syntax

string = trim(string)

Example

print trim(" This String ")
This String
```js
print "[" + trim(" This String ") + "]"
[This String]