Implement new wrap_text() function

New wrap_text() function in string module to wrap lines when they exceed
particular character lengths.

New test functions in test_string.py.
Finalise wrap_lines() function

Rewrite wrap_text() function to wrap_lines() in string module.