Made text wrapping algorithm awesome
Fixes #972