static string LimitString(string s, int max) { if (s.Length > max) { return s.Substring(0, max) + "..."; } return s; }