I would like someone to look at my script. I think that the code can be condensed. I will describe what is happening with the script. A three digit hexadecimal number represents a binary string. Each zero within the string is substituted for a one in turn. So a string with five zeros will produce 5 new strings each containing 4 zeros. Eg The hex number 2A5 represents the binary string 001010100101 which contains seven zeros. This means that there are seven places where '1' can replace a zero