Print ordered chars with specified format -- Google