Right padding according to max item

var maxItem = 13; // FindMaxItem()
int digits = (int)Math.Floor(Math.Log10(maxItem) + 1);

for(var j = 1; j <= itemsCount; j++){
  
  rowString += $"{j.ToString().PadRight(digits)} ";
  
  // ... ... ...
}