trim a string variable

In strategy ,i have a string variable from which i want to remove all blank spaces. Is there a IRD function whch does that ? Something like trim function.

The space can be at any point of string variable -start /end/in between

Try something like this: StrReplace[test_string,’ ‘,’']

As you can see it works for me:
_I_I_015201afa1e16e60 [09:04] ASSIGN: test_string(LOCAL) ← STRING: hello there send by mielu
_I_I_015201afa1e16e60 [09:04] ASSIGN: test_string(LOCAL) ← STRING: hellotheresendbymielu
11:59:45.300 Int 22000 test_string after is: hellotheresendbymielu

Regards

1 Like