Checks if a string is a valid hexadecimal string. If a length is provided, it also checks that the string has that length.
Optional
Checks if a string is a valid hexadecimal string. If a length is provided, it also checks that the string has that length.