Fix leading zeros in bitwise operation
fixes #110 (closed) fixes #114 (closed)
@mst and I discovered a bug in the bitwise operations:
Leading zeros as a result of a bitwise operation resulted in the string being interpreted as octal instead of hexadecimal. The change removes the leading zeros of the string after the bitwise calculation.