Formatting Text Working

Finally have the format_text() working. Only couple of things to do.
Need to handle the input a bit better, do some tidying make sure it
looks neat and tidy.

Almost there!