is there an quick way to find(and remove) all escape sequences from a Stream/String??
If you're going for fewer lines of code:
string inputString = "\ncheese\a"; char[] escapeChars = new[]{ '\n', '\a', '\r' }; // etc string cleanedString = new string(inputString.Where(c => !escapeChars.Contains(c)).ToArray());