Four examples of word wrapping at the 80 character mark, each one taking fewer steps than the last.
Comment and uncomment lines with # to see the difference between versions. Optimization discussions welcome!
#