Added toString and toPrettyString