Filter string characters.