fixed bug due to unprintable characters

* removing unprintable characters by replacing them with ' '
* also doing a better job of setting our allocated memory to 0
* added a larger text to test