you have to do the replace on the upper string as well or it will keepfinding the same swearwordthe while condition uses the upper string for comparison