Formatting the output strings for Dictionary.