Implemented the string.alignCenter() method.