public static string SanitizeChannelName(string str) { str = Regex.Replace (str, @"\s+", ""); str = Regex.Replace (str, "[^a-zA-Z0-9 _]", ""); return str; }