Trim spaces
- Last Updated: October 26, 2026
- 1 minute read
- Corticon.js
- Version 2.4
- Documentation
SYNTAX
<String>.trimSpaces
Returns <String>.
USAGE RESTRICTIONS
The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.
This sample Rulesheet uses trimSpaces.
![]()
A sample Ruletest provides a collection of three elements, each with a String value. Input and Output panels are shown below.
Note: As the Studio Tester trims spaces in the input area, you cannot really test this operation here!
![]()