There is functions to remove non-char's, but not really non-words.
dg354srt is valid characters, and all letters could potentially be used in a sentence.
What I would do is take a look at your string and see if there is any kind of pattern that could be used against what you have.
You can do it if you want to remove any words that contain anything other than a specified set of characters, i.e. A-Z, a-z, ',", etc, in other words if the string was "happy dg354srt goats can eat %uhr(66 grass", you can remove "dg354srt" and "%uhr(66", since the other words only contain a-z.
see if you are able to clarify what kind of patterns you need to remove/save post it here.