Lets say I have two strings:

```
x = "String"
y = "This is a String. Strings are made up of text, not string."

```

I want to replace everything in string y that does not equal string x with something else, so something like this:

```
>>> print(y.replace(~x, ""))
StringString

```

How would I do that?

EDIT: Fixed some confusing , uneeded things