Center the string within the specified width using the pad character.
Example:
assert (Strings.center ("hi", 6, '*') == "**hi**");
| s |
the string to center. |
| width |
the desired total width. |
| pad |
the padding character. |
|
centered string. |