Only remove substring if it is part of string
Only remove substring if it is part of string

Fixes #2661

thiblahute/meson,thiblahute/meson,mesonbuild/meson,pexip/meson,pexip/meson,becm/meson,QuLogic/meson,QuLogic/meson,pexip/meson,jeandet/meson,pexip/meson,MathieuDuponchelle/meson,jeandet/meson,thiblahute/meson,QuLogic/meson,MathieuDuponchelle/meson,thiblahute/meson,MathieuDuponchelle/meson,jeandet/meson,MathieuDuponchelle/meson,mesonbuild/meson,QuLogic/meson,MathieuDuponchelle/meson,mesonbuild/meson,mesonbuild/meson,jpakkane/meson,becm/meson,jeandet/meson,becm/meson,jeandet/meson,jeandet/meson,QuLogic/meson,becm/meson,pexip/meson,jpakkane/meson,jpakkane/meson,jpakkane/meson,jpakkane/meson,QuLogic/meson,becm/meson,becm/meson,mesonbuild/meson,jpakkane/meson,mesonbuild/meson,mesonbuild/meson,QuLogic/meson,jeandet/meson,pexip/meson,pexip/meson,QuLogic/meson,MathieuDuponchelle/meson,jpakkane/meson,thiblahute/meson,mesonbuild/meson,thiblahute/meson,jeandet/meson,thiblahute/meson,MathieuDuponchelle/meson,mesonbuild/meson,pexip/meson,mesonbuild/meson,jeandet/meson,thiblahute/meson,jpakkane/meson,MathieuDuponchelle/meson,becm/meson,jpakkane/meson,pexip/meson,MathieuDuponchelle/meson,becm/meson,QuLogic/meson,pexip/meson,thiblahute/meson,becm/meson,becm/meson