Function
string.center

Signature

center(s, width, *args)

Documentation String

center(s, width[, fillchar]) -> string

Return a center version of s, in a field of the specified width. padded with spaces as needed. The string is never truncated. If specified the fillchar is used instead of spaces.