Returns the hex string, or black's hex if invalid.
Returns the integer value, or black's int if invalid.