Added the functionality to center strings