I want to substring a variable length string with leading spaces to 25 or less characters. i got it to work but looking for other ways?
... item.LineString.Trim().Substring(0,
item.LineString.Trim().Length > 25 ? 25 : item.LineString.Trim().Length));
I’d use
Math.Min: