Suppose I have a string and I want to check if it contains the following words, then matched words should be removed.

The words are `‘PTE’, ‘LTD’, ‘PRIVATE’ and ‘LIMITED’`

I want to check it for both scenerios like if I have word.

```
String company = "xxx Basit xxx";  //xxx can be ‘PTE’, ‘LTD’, ‘PRIVATE’ and ‘LIMITED’

```

then output should be just `Basit`.

and if I have string like:

```
String company = "xxxBasitxxxMasoodxxx";

```

then output should be:

```
BasitMasood

```

How can I do it?

Thanks