It would be very useful to be able to truncate strings to a certain length and also pad left and right, currently only padding left appears to be supported. maybe upper case S could support traditional extended string formatting like
%10S - pad right
%-10S - pad left
%.10S - truncate right
%-.10S - truncate left
%10.10S - pad and truncate right
%-10.10S - pad and truncate left
I would consider creating a patch request if the idea is palatable