private static char ConvertCase(char c, bool caseSensitive) { return (caseSensitive)?c:Char.ToUpper(c); }