Format card type