I need to take a string of any length & make it exactly 5 characters long by either truncating it or padding it or neither.
So "abcdefgh" becomes "abcde", "abcde" stays "abcde" & "abc" becomes "abc " (2 spaces at the end).

I currently use this line of code:

Code:
Microsoft.VisualBasic.Left(myString, 5).PadRight(5, " "c)
it works, but it seems very hackish. Can anyone see a more elegant way? Thanks...