title: Kotlin Convert long String letters to a numerical id
body: <p>I'm trying to find a way to convert a long string ID like "T2hR8VAR4tNULoglmIbpAbyvdRi1y02rBX" to a numerical id.</p>
  
  <p>I thought about getting the ASCII value of each number and then adding them up but I don't think that this is a good way as different numbers can have the same result, for example, "ABC" and "BAC" will have the same result</p>
  
  <p>A = 10, B = 20, C = 50,</p>
  
  <p>ABC = 10 + 20 + 50 = 80 </p>
  
  <p>BAC = 20 + 10 + 50 = 80 </p>
  
  <p>I also thought about getting each letters ASCII code, then set the numbers next to each other for example "ABC"</p>
  
  <p>so ABC = 102050</p>
  
  <p>this method won't work as having a 20 letter String will result in a huge number, so how can I solve this problem? thank you in advance. </p>