private string ToShort(string name) { if (string.IsNullOrEmpty(name)) { return(""); } if (TagValue.Length < 3) { return(name); } return(name.Contains(" ") ? string.Join("", name.Split(' ').Select(x => char.IsNumber(x.ElementAt(0)) ? x : x.ElementAt(0).ToString())) : TagValue.Substring(0, 2)); }