Does this work for hex and octal strings?