How to add double space in a string

I have string which can be like: “STOWE CFG 4567356” or “STOWE CF 456 6343”. The length of each word and numeric word in this string is variable. I want to replace the single space after second word with two spaces. Can anyone help??

  1. Split words by space
  2. Assign str1 = Join the 1st 2 index of array(0,1) using space .
  3. Assign str2 = array from (2,to last) join using space.
  4. Assign str3 = Str1 +" 2 space "+str2
1 Like

Can you please share xaml file??

Strin split.xaml (7.0 KB)


Thanks @Priyanka_Ramesh

Welcome :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.