Removes all ASCII white space (spaces, tabs, carriage returns, and linefeeds) from the beginning, end, or both ends of string. The Trim Whitespace VI does not remove double byte characters.

The default is to remove white space from both ends of string.


icon

Inputs/Outputs

  • cu16.png location (both)

    location determines if this function removes white space from the beginning, end, or both ends of string.

    The default is both.

    0Both—Removes white space from both ends of the input string.
    1Start of string—Removes white space from the start of the input string.
    2End of string—Removes white space from the end of the input string.
  • cstr.png string

    string is the input string.

  • istr.png trimmed string

    trimmed string contains the string with the white space removed.