trimStart
  • 23 May 2023
  • Dark
    Light
  • PDF

trimStart

  • Dark
    Light
  • PDF

Article summary

trim Start Task Purpose

The trimStart task is used to remove whitespace at the beginning of a string.

Potential Use Case

If you want to make sure no spaces remain at the beginning of any datasets in a string entry, then use the trimStart task to find and remove them.

Properties

Input and output parameters are shown below.

Incoming Type Description
str String Required. The string to remove whitespace from.


Outgoing Type Description
trimmedStart String A new string representing the input str stripped of whitespace from its beginning (left end).

Example

In this IAP example:

  • A New Job Variable is used to input data into the trimStart task, and the New Variable Name is "string". The new variable value is Hello World, with spaces at the beginning and ending of the words.

    trimStart-01


  • Next, the trimStart task is used to reference New Variable: String within the Reference task. The reference value is automatically set to accept the value from the task being used as an input.

    trimStart-02


  • After running the job, notice that the incoming variable has spaces before and after the words Hello World as shown by the placement of the quotation marks.

    trimStart-03


  • The trimmedStart variable upon output will be "Hello World" and the whitespace before the word "Hello" has been removed.

    trimStart-04


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.