> For the complete documentation index, see [llms.txt](https://docs.cloudfabrix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudfabrix.io/rda/rda-userguide/rda-aiops-studio/examples-jupyter/data-mapping-cfxdm-dm-functions/strip.md).

# Strip

**Strip**\
Strips white spaces from both sides of a string, \
Requires no parameters. \
Input must be a string.

This function allows users to strip additional or special characters from the input string.

### Example 1:&#x20;

Step 1: Create an empty **strip\_example\_1** using AIOps studio as shown in the below screenshot. 

![Empty pipeline](/files/-MeSQZJZm46ulwpZgDPU)

Step 2: Add the following pipeline code/commands into the above-created pipeline as shown in the below screenshot:

You can copy the below code into your pipeline and execute that in your environment.\
\
\&#xNAN;*`##### This pipeline creates two rows with different strings that contain additional white`*\
*`##### spaces at the end of the strings and is stored as dataset.`*\
*`##### Pipeline uses RDA dm strip function to remove additional white spaces at the end`*\
*`##### and output is displayed without white spaces.`*\
\
*`@dm:empty`* \
*`--> @dm:addrow Input_String = 'RDA is a data exchange and transformation tool    '`*\
*`--> @dm:addrow Input_String = 'AIOps uses RDA tool     '`*  \
*`--> @dm:map from = 'Input_String' & to = 'Output_String' & func = strip`*<br>

![Pipeline code added to empty pipeline created](/files/-MeSSSnIAuh_2NnteGBI)

Step 3: Click verify button to make sure syntax and pipeline code is correct (as shown below)

![Pipeline code is verified using 'Verify' button as shown above.](/files/-MeSSq7EBJ3z7jdpXrBR)

Step 4:  Click execute button and execute the pipeline. RDA will execute the pipeline without any errors (as shown below)

![Successful execution of pipeline without any errors](/files/-MeSTLGaO1Qc6Vag5UlE)

Step 5: RDA uses the dm function strip to remove white spaces from the input string. In this example, two strings with additional white spaces are fed to the dm function 'strip' which in turn removes white spaces and prints the output. This function will be useful when the dataset contains strings with white spaces (tabs, etc).

![Successful execution of pipeline using dm function 'strip' and prints output ](/files/-MeSUY23qXGW3vldKhpq)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.cloudfabrix.io/rda/rda-userguide/rda-aiops-studio/examples-jupyter/data-mapping-cfxdm-dm-functions/strip.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
