Added helper function to find errors in string parsing to hexencoder instances.