Helper script for automatic text alignment