It transforms a whole speech. The $1- tells it to change everything that matches string 1 to the new string 1, everything that matches string2 to the newstring2, etc.
What I am thinking is mine is to long, thus it removes it. If I break it into smaller one, then it works.