fixes #71 using string length when counting characters.

Also example with ASCII colors added.