Remove certain keyword in a sentence

i want to remove digits of an address and pick only the city name or remove certain keywords such as “STREET” so that it can be still read by my api to determine the address. but since this address dynamically how will i get the right output i am aiming for? is there any solution for this?

1.The digits can be replaced using the regex digits.
2.The Keywords can be specified as Array or List .
3.Loop through Array to replace them.

  1. Digits can be removed using regex
  2. If you have a set words to be removed in a config , we can crosswalk and remove it in its occurrences directly.