> For the complete documentation index, see [llms.txt](https://docs.pentafloat.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentafloat.com/documentation/processors/creating-a-processor.md).

# Creating a processor

Create a static method that returns a `string` and mark it as a processor using the `[Processor]` attribute.\
This example removes exclamation marks from the input. In case you want to prevent aggressive commands.

```csharp
[Processor]
public static string RemoveExclamationProcessor(string input)
{
    return input.Replace("!", string.Empty);
}
```

{% hint style="warning" %}
**Caution**

You may not wanna go overboard with processors, as it could lead to unexpected behaviour if not handled with caution. Remember to make sure the final string is still executable after being modified.
{% endhint %}
