If you use PHP 5, and ONLY Php 5, you can also use str_ireplace(). It will replace a word without caring about the case...
Example :
echo str_replace("allo", "salut", "ALLO");
... will return "ALLO" and not "salut"
echo str_ireplace("allo", "salut", "ALLO");
... will return "salut", that's what we want !
But remember... only PHP 5 !
If, like me, you don't have PHP 5, you can use eregi_replace()... !