© Copyright 2023, Astera Software
Name
TrimExtraMiddleSpace
Syntax
TrimExtraMiddleSpace (String str)
Purpose
To return a string after removing any extra spaces in a string.
Description
Removes extra space from string at any position.
Return Type
String
Parameters
str [System.String] – The string with extra spaces
Example
In this example, we are passing the required parameters to the function transformation object using a Variables object.
Where,
str: A B C
Right-click on the function transformation object and select Preview Output. You can see that Astera Data Stack has returned a string value, with any extra spaces removed.