Support > Forums > OpenBots Studio > Trim Command |String Operations

Trim Command |String Operations

Akesh John Koshy

  • Reporter
  • Calender Icon April 22,2021 at 9:18 AM

is the studio missing the Trim command (Trimming spaces from left & right side of a string) as i was not able to find . Correct me if i am wrong .

As of now ,My workaround for this is to split the string with white space as delimiter and extract the string in the list , is there any workaround for this ?

This forum has 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...

Nataly Alvarado...

  • Participant
  • Calender Icon April 23,2021 at 1:28 PM

Hello Akesh!

Yes, Studio currently does not have a trim string command. To get rid of leading and trailing whitespaces, you can use the Regex Replace commands. Use a Regex Pattern that matches the whitespaces, for example: '^\s+|\s+$' and replace the empty spaces with an empty variable.

Hope this helps!

You are not authorized to reply, please click here to login and add your reply to this topic.