Remove   in string


what is the best option to remove "   " in string? I am getting this in text and I need to remove it.


Ok, it depends on where exactly you want to remove this space character from.

  1. - to remove from the right
  2. - to remove from the left
  3. - to remove from anywhere inside a string

You can also use string.Trim which remove leading and trailing spaces (&nbsp)

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