Function normalizeOutputFormat