Fixed get_hex_stripped so that it does not modify the object.