public static String alignLeft ( Object o , int width , char c ) { if ( null == o ) return null ; String s = o . toString ( ) ; int length = s . length ( ) ; if ( length >= width ) return s ; return s + dup ( c , width - length ) ; }
Fill a certain number of special characters on the right side of the string