Remove an empty space with Microflow

6
In a particular string value, I would like to cut the empty space out of the string value (E.g. converting 'Car wash' into 'Carwash'). Can I do this with microflow?
asked
2 answers
8

Create a variable called "Offset" of type integer and a variable called 'NewString' of type string then do the following:

  1. Create NewString => Newstring = trim('Car wash')
  2. Change variable => Offset = find(NewString, ' ')
  3. Split => Offset <> -1
    • True => NewString = substring(NewString, 0, Offset) + substring(NewString, Offset + 1) --> go back to 2
    • False => Done
answered
0

It is possible to strip whitespace in front or after a string (for more info you can look here.

For you case you will have to resort to Java, as the position of the whitespace is variable (Java will alow you to determine the location of the whitespace)

answered