refactoring #to_s, #inspect