Hub
Pricing About
NodeNode / Manipulator

String Manipulation (Variable)

Workflow ControlVariables
Drag & drop
Like

Manipulates or defines values of variables like search and replace, capitalize or remove leading and trailing white spaces.

Examples:

To remove leading and trailing blanks from a variable with name c0 you would use the expression:
strip($${Sc0}$$)

If you have your customer names in flow variable names with titles Mr and Mister and you want to normalize the data so that only Mr is used you could use the expression:
replace($${Snames}$$, "Mister", "Mr")
or you could combine it to
replace(replace($${Snames}$$, "Mister", "Mr"), "Miss", "Ms")

Or if you want to have the number of characters of the strings in a variable with name text :
length($${Stext}$$)

Note that strings which are part of the expression and are not from the input data (or the result of another wrapped function call) need to be enclosed in double quotes ('"'). Additionally, if the string contains a quote character, it must be escaped using a backslash character ('\"'). Finally, other special characters such as single quotes and backslashes need to be escaped using a backslash. For instance, a single backslash in a string is written as two consecutive backslash characters; the first one acts as the escape character for the second.

External resources

  • KNIME E-Learning Course: Creation and usage of Flow Variables in a KNIME workflow

Node details

Input ports
  1. Type: Flow Variable
    Input variables (optional)
    Input variables (optional).
Output ports
  1. Type: Flow Variable
    Appended variables
    Input variables with an additional calculated variable or one variable replaced.

Extension

The String Manipulation (Variable) node is part of this extension:

  1. Go to item

Related workflows & nodes

  1. Go to item
  2. Go to item
  3. Go to item

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits