Trim()

Removes white space from the beginning and end of a string.

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.

The function returns the provided string with whitespace removed from the beginning and end: דרך השלום 5, תל אביב-יפו, ישראל