Converts hexadecimal strings into base 10 integers