PADCENTER

The PADCENTER method centres a text by adding characters up to a specified length from the left and right.

PADCENTER(string, character, number) => string