Remove case when word to found or word to be replaced is an emptied string