Is the reason for not wanting a hardcoded string that you wish to be able to remove some other string as well? Then you could consider writing a method like:
public String removeNoise(String url, String noisePattern) {
return url.replace(noisePattern, "");
}