ignore spaces and non characters c# code example
Example: remove all non alphabetic characters from string c#
var cleanString = new string(dirtyString.Where(Char.IsLetter).ToArray());
var cleanString = new string(dirtyString.Where(Char.IsLetter).ToArray());