Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting rid of spaces in a string

To add a whitespace seperator in a string we use String.Join().

My question:What(and how) do I have to remove that seperator.

The string's structure is the following "FF FF FF FF FF FF FF FF FF...."

How do I remove the white spaces?

like image 417
Ivan Prodanov Avatar asked Jan 22 '26 13:01

Ivan Prodanov


1 Answers

C# Has a function for it.

Function is String.Replace(oldstring, newString);

String.Replace(" ", "");
like image 74
Dmitris Avatar answered Jan 24 '26 04:01

Dmitris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!