latest
Text
Trim Spaces

Remove whitespace characters from the start, end, or all text

ID

662ae7a510b6cb87640c92d1

Name

Trim Spaces

Group

Text

Package

Tool

Keywords

trim
cleanup
text

Surface

Vector

Transform

Primitive Curves

Curve Analysis

Toolset

Triangulation

Boolean Operation

Panels

Solid

Intersection

Text

Image

Analysis

Array

Creation method

There are two options for creating a Trim Spaces node.

  • The first way to create a Trim Spaces node using the search list, which is opened by double left-clicking in the workspace. You can write the name of the node you need, or words associated with this node.
    • textDist , textLeven
  • The second way is to select a Trim Spaces node from the menu that opens from the top left.
    • Menu > Tool > Text > Trim Spaces

Steps

  • Create a Trim Spaces node.
  • Connect the text to the first port to remove whitespace characters from the beginning, end, or all of the text.
  • Connect the optional boolean value for trim spaces at the start to the second port.
  • Connect the optional boolean value for trim spaces at the end to the third port.
  • Connect the optional boolean value for trim spaces at all text to the fourth port.

After creating a node, to the first port, connect the text to remove whitespace characters from the beginning, end, or all of the text. Connect the optional boolean value for trim spaces in the text at the start to the second port and at the end to the third port. Connect the optional boolean value for trim spaces at all text to the fourth port. On the output port, we will get the result of the text trimmed.

See also

Characters
Text Join
Concatenate
Text Case
Match Text

Inputs

NameTypeDescriptionDefault Value
text
String
Text to trim
start
Boolean
Trim spaces at start
end
Boolean
Trim spaces at end
all
Boolean
Trim spaces in all text

Outputs

NameTypeDescription
trimmedText
String
Trimmed text