adding hex to int w/error checking for 0-9 & A-F