Suppose I have this string:
string str = \"The quick brown fox jumps over the lazy dog\";
How can I replace or ignore the spaces in the str
mytextbox.Text=String.Join(Environment.NewLine,str.Split(new[]{' '},StringSplitOptions.RemoveEmptyEntries));
Would be my guess, if I understand the question correctly.