hmm, I dont know the comand off the top of my head , I think you can do a combination of strcmp, but i cant remeber the replace command, are we assuming there is always going to be a space after "AN", because I can see a problem where it'll see the "AN" inside of an already existing AND, and create an "ANDD"
I do know that strcmp will compare two strings, I guess one approach would be to loop through the string, at 3 letter intervals, like checking the first letter with length of three, then next and so forth.
like in
"Hungry Hungry Hippos"
it compares
"AN " to "Hun" and "ung" and "ngr" and ... well you get the point.
need more information on just the comparism part? ( I know once you can find a match, you can just remeber the index in the character array its at and just cut and paste around that via code ) Karl Blessing aka kb244{fastHACK}