How to save HEX array to String?

Ouch, that is a really pedestrian and inefficient way to do it.

Instead, compare the input buffer with a constant array, using strcmp(). No conversion to hex necessary...
If the buffers are fixed length with no terminating null, use memcmp().