Replaced String.format with MessageFormat because. Fixed a bug where seperating comma was missing when generating JSON for Timed metric