public override string ToString() { var hasStart = !string.IsNullOrWhiteSpace(StartYear); var hasEnd = !string.IsNullOrWhiteSpace(EndYear); if (hasStart && hasEnd) { return($"{StartYear.Trim()}-{EndYear.Trim()}"); } else if (hasStart) { return(StartYear.Trim()); } else if (hasEnd) { return(EndYear.Trim()); } return("Unknown"); }