Fixing text alignement while changing its formatation