title: How to remove invalid characters from a string?
body: <p>I have no idea how to remove invalid characters from a string in Java. I'm trying to remove all the characters that are not numbers, letters, or ( ) [ ] . How can I do this?</p>
  
  <p>Thanks</p>