Function normalizeLanguage