Using custom format strings to format double and string outputs