[PATCH] cmd: improve string matching for hex