Lasso Soft Inc. > Home

[ string->trim ]

Method

[String->Trim] removes all white space from the start and end of the string. Modifies the string in place and returns no value.

All spaces, return characters, new lines, and tabs are removed from both the start and end of the string.

  • Syntax
'String Object'->trim
Examples
  • Beginner

To trim extra white space from a string:

Use the [String->Trim] method. The following example shows how to trim extra white space from the beginning and end of a  string.

Code

local('s') = 'documentation@lassosoft.com '
#s->trim
#s

Result

documentation@lassosoft.com

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft