public static bool IsSection(string s) { if (s.Length < 2) return false; return s[0] == '[' && s[s.Length - 1] == ']'; }