add common substring removal