Center-aligns text
If text.length > width, the exceeding characters are removed
the text center aligned in a string
st{ assert("qwr".centerAlignText(7) == " qwr "); assert("qwerty".centerAlignText(6) == "qwerty"); assert("qwerty".centerAlignText(5) == "qwert"
See Implementation
Center-aligns text
If text.length > width, the exceeding characters are removed