Work on Text Patching

A lot of work on patchText(), all commented. Should be working but it's
repeating the letter b instead. Maybe issues with byte strings?