added pretty print object and test for string and html.