just around the STR_CPY and the count would DO, but the loop would keep reading after its gotten what it wants. Not efficient. Put a break; inside that if too and its better.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial