# Pre-translation

Configure text processing rules applied before sending text to the translation engine.

### Allow line breaks

Preserves line breaks in the original text. By default, all line breaks are removed before translation.

### Trim & normalize spaces

Removes leading and trailing whitespace from text before translation.

### Exclude strings

Excludes specific strings from translation. When text matches exactly, it will not be translated. However, sentences containing these strings will still be translated.

<figure><img src="https://4121582948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKz66WcKqTPRwdFrHi4mM%2Fuploads%2F3XRqO5KdDmE5KxWihCGs%2Fexclude-strings-settings.jpg?alt=media&#x26;token=2f2aa7f7-7152-4b3a-8569-8913ede20561" alt=""><figcaption></figcaption></figure>

**Example**

Exclude Strings: `"Sunny, Summer, Dark Lord"`

<table><thead><tr><th width="200.20001220703125">Original Text</th><th>Translation Behavior</th></tr></thead><tbody><tr><td>Summer</td><td>❌ Will not be translated (exact match)</td></tr><tr><td>Where are you, Summer?</td><td>✅ Will be translated (part of sentence)</td></tr><tr><td>Hi, Summer</td><td>✅ Will be translated (part of sentence)</td></tr></tbody></table>

{% hint style="info" %}
To prevent specific terms from being translated within sentences, use the [**Translation Glossary**](https://docs.vntranslator.com/features/translation/glossary) feature with **"Define Variables"** mode
{% endhint %}

### Regular expression (RegExp)

Applies custom regular expression patterns to filter or modify text before translation.

**Learn more:** [RegExp Guide](https://docs.vntranslator.com/advanced/regexp)
