This is quite inneficient: you can just use `if (isxdigit(color[i]))` instead of going through the `hexCode` string every time.