refactored isHexString - it now extends the String prototype