Bloomberg interview question

code to remove stray characters from a string?