×

Trim Whitespace

iOS 15 +

Notes

Removes leading & trailing whitespace and newline characters from the input text.

Syntax

trimWhitespace(text: <#String (Allows Variables)#>)

Example

trimWhitespace(text: "    hello world       ")