Update Hex.java

Fix toString() method.