fun String.toCreditCardNumber(): String { return this.filter { it.isDigit() } }
Strips characters other than digits from a string. Used to strip a credit card number user input of spaces and separators.