Handle different types of extensions formatting