How to Replace Something From string

I have to remove @ from a string i used .replace but it is not working please find attached image

Hi @Alok_Dwivedi ,

That is not actually a part of the string, its just how the bot interprets long strings.

If you were to log it onto the console, you will notice that the @ disappears.
Could you give that a try, using the Log Message Activity?

By the way, if you were referring to the newline, you can eliminate it using this:


Kind Regards,
Ashwin A.K

Hi @Alok_Dwivedi

Try with Replace

StrMy.Replace("@"," ").ToString



hi @Alok_Dwivedi

that “@” doest not be inside you string, if you take a look it is outside, all you need to do is to add a .trim at the end of your variable and thats all.

Hope it helps

best regards!

@fernando_zuluaga Thanks it is working

1 Like

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