This content has been marked as final. Show 4 replies
In general, you can use String.replaceAll() with a regular expression as an argument on what you want to remove.
A search of Google for something like this:
string.replaceAll non printable
If it doesn't suite your needs, you can vary the Google search string to get what you want, or read up on regular expressions.