migth help to show us a sample of the script. I have never had trouble using an item in $replace