Closed
Solved
Left or Right pad a string
I couldn't find a built-in function to left/right pad a string with a given character. Is there one available?
For example I want to left pad with zeros for string 'xyz' so that the total length is 5.
Output should be '00xyz'
Thanks,
-Sri