string Unwrap(string s) { return (s.StartsWith("[") && s.EndsWith("]")) ? s.Substring(1, s.Length - 2) : s; }