# ReplaceAllSpecialCharsWithSpace

| **Name**    | ***ReplaceAllSpecialCharWithSpace***                        |
| ----------- | ----------------------------------------------------------- |
| Syntax      | ReplaceAllSpecialCharWithSpace (String str)                 |
| Purpose     | To replace all special characters in a string with a space. |
| Description | Places Space on index of Special Characters in a string.    |
| Return Type | String                                                      |
| Parameters  | Str \[System.String] – The Input string                     |

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2Fgqh6CCg9m8C9JuHrRKtK%2F0.png?alt=media)

**Example**

In this example, we are passing the required parameters to the function transformation object using a *Variables* object.

Where,

*str =* A\@B!C$D\*

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FaGwoy7XBMLYfzPCpn4kO%2F1.png?alt=media)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has returned a string, having replaced all special characters with a space.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FpbKVXuOyoLC3VHxDxSmn%2F2.png?alt=media)


---

# 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://documentation.astera.com/astera-data-stack-v10/functions/string/replaceallspecialcharswithspace.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.
