# asp\_indexing\_string\_pre\_process

This filter runs just before the tokenization process is started, but before the raw text is cleared

```
apply_filters('asp_indexing_string_pre_process', $raw_str);
```

### Parameters

* **$raw\_str (string)** - the text which is about to be tokenized

```php
add_filter( 'asp_indexing_string_pre_process', 'asp_change_the_string', 10, 1 );
function asp_change_the_string( $raw_str ) {
    return $raw_str . " my text";
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.ajaxsearchpro.com/hooks/filters/index-table-related/asp_indexing_string_pre_process.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
