"xxxxxxxxxxxx" + creditcard.Remove(0,12)
Since the credit card numbers of ISO / IEC 7812 are 16 digits.
If the credit card is not ISO / IEC and has a different length, please use the greg answer. Like AmEx with 15 digits and Diner with 14. (I didn’t even know about it, as in Europe AmEx is not so common.)
source share