Fixed some case statements in hextobin function