stringToBase

fun stringToBase(x: String, alphabet: CharArray): BigInteger