Implemented formatted version of toString