If the payload contains only lowercase strings, using "include" I need also "upcase" functions.

As far as I know, depending of the device, the answer could be truncated and includes only part of the strings "ABC..","abc.." and "0123..". Only the characters sequences are respected. Usually (always!) you can find at least one time the whole strings into the payload.

If you agree, I think that "if (res.match(/ABCDEFGHIJKLMNOPQRSTUVWXYZ/i) || res.match(/0123456789/))" is sufficient.