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
string str = "The quick brown fox jumps over the lazy dog"; string[] splits = str.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
Hope that helps