<p>I am trying to manipulate a string using Jython, I have included below an example string:</p>

<p>This would be a title for a website :: SiteName<br />
This would be a title for a website :: SiteName :: SiteName</p>

<p>How to remove all instances of ":: Sitename" or ":: SiteName :: SiteName"?</p>

No different from regular Python:
```
```
>>> str="This would be a title for a website :: SiteName"
>>> str.replace(":: SiteName","")
'This would be a title for a website '
>>> str="This would be a title for a website :: SiteName :: SiteName"
>>> str.replace(":: SiteName","")
'This would be a title for a website '
```
```