Implemented word_wrap

Do let me know if there's a more idiomatic way to do this.
I would rather use `const SPACE_WIDTH: uint = 1;`, since it is actually a compile-time constant