I'm running a double loop to replace all the interior characters with the hyphen character. This gives me the correct output in the IDE, but I'm failing validation with no explanation as to why.