STRING To HEX Converter

nes is a String, but strtoul expects a char array.
That's why you get an eror.
The String class has a method to turn Strings into strings.

Or, you could cut out the middleman, and not bother using Strings in the first place.