How to remove space in between the variables?

I want to remove the spaces between the variables, can you please help?

out_ClientID+“-”+out_ClientName+“-”+out_ClientCountry

now is CX76110- Mirian Derosier- Germany

how to become CX76110-Mirian Derosier-Germany? thanks

1 Like

Use TRIM method

@vivianlam12 Can you please elaborate more about your scenario from the string where you want to remove space

Hi Vivi,

variable.replace(" “,”").trim.tostring

Thanks!

Please trim individual variables.

out_ClientID.Trim+“-”+out_ClientName.Trim+“-”+out_ClientCountry.Trim

Regards,
Karthik

1 Like