string y = string.Format(x.PadRight(50, ' '), lcDescription);you need this:
string y = string.Format(x, lcDescription).PadRight(50, ' ');~~Bonnie
string.Format("Total {0} Amount:", lcDescription);>>
>string lcDescription = "abc"; >string x = "Total {0} Amount:" ; >string y = string.Format(x.PadRight(50, ' '), lcDescription); >>
>"Total abc Amount: "
after evaluation.