update __repr__ method to handle new lines