-added hex validation when reading a string from a json file.