function cleans a string by throwing away all non-alphanumeric characters Source: core/String.js, line 191