Hash formatting