The var “Company_List” contains a list of companies, one of which is “Walgreens Boots Alliance”
Does .Trim not trim all whitespace, start/between/end ?
walgreens boots alliance
I need without spaces
I can modify the text but looking to do it with just string manipulation.
Trim only removes spaces at the beginning and end of the string.
If you want to remove all spaces…
Note that ToString isn’t necessary, because your list is list(of string) and so it already knows they’re strings. And in cases where ToString is necessary, it should come first before things like Trim and Replace.
Hey @MikeC ,
Works perfectly, thanks buddy
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.