takes a string and a radix and outputs an integer (radix upto 16)