Overloaded prettify method