string.format method converted to private method of i18nService, some unit tests added