added filtering of special characters for performance reasons