Text alignment and transformation