I put the headphones on my head.
If you look at that string, when you explode it, you get:
Array ( [0] => I [1] => put [2] => the [3] => headphones [4] => on [5] => my [6] => head. )
Then when you compare them, "head." will NOT match "head", so will not be replaced.