padRight

Right-pads a character sequence within the specified width if it fits; else the right-most characters of that sequence.

Return

right-padded or shortened or the same sequence

Parameters

width

number of characters into which to fit this sequence