Fixing word wrap for terminal output