Not exactly kotlin related but I hope it's ok to ask a general question. I have a numeric value with the length between 8-10 chars (when represented as a string). This value is used as a reference text for bank transfers. Unfortunately people are still not capable of copy & pasting values therefore we have a lot of people sending money with digits switched (like 1443 instead of 1434). I thought about adding some kind of checksum to it to at least know the provided number is incorrect. Any suggestions?