Fixed a bug with the z character. Word wrap works well if you are at the end of the document, but disrupts all the characters afterwards