> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-bradley-turek-pfilter-operators-reference.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Removing White Space from Text Strings

You can use Magic ETL to remove spaces from text strings.

**To remove spaces from text strings,**

1. Open Magic ETL.

2. For your input DataSet, select the DataSet you want to remove spaces from.

   <Frame>
     <img alt="df_removewhitespace_1.png" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/Bln2hKE_VIAav7eo/images/kb/ka05w00000123is-00N5w00000Ri7BU-0EM5w000005vOv4.png?fit=max&auto=format&n=Bln2hKE_VIAav7eo&q=85&s=18071eace50f3b5a9d90b79c78ec6c53" width="623" height="459" data-path="images/kb/ka05w00000123is-00N5w00000Ri7BU-0EM5w000005vOv4.png" />
   </Frame>

3. Add a "Replace Text" tile.

4. Under **Select a column to search**, select the column you want to remove spaces from.

5. Under **Enter a term to search for**, enter \s.

   <Note>
     **Note:** In RegEx \s is the expression for whitespace.
   </Note>

6. Check the box reading **Use RegEx**.

   <Frame>
     <img alt="df_removewhitespace_2.png" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/Bln2hKE_VIAav7eo/images/kb/ka05w00000123is-00N5w00000Ri7BU-0EM5w000005vOvD.png?fit=max&auto=format&n=Bln2hKE_VIAav7eo&q=85&s=86ea8aeb3bf82bb6f0b5edcec1a08885" width="624" height="406" data-path="images/kb/ka05w00000123is-00N5w00000Ri7BU-0EM5w000005vOvD.png" />
   </Frame>

7. Repeat steps 4-6 for all columns that need to be corrected.

8. Click **Done**.

9. Add an output DataSet and name it.

   <Frame>
     <img alt="df_removewhitespace_3.png" src="https://mintcdn.com/domoinc-bradley-turek-pfilter-operators-reference/Bln2hKE_VIAav7eo/images/kb/ka05w00000123is-00N5w00000Ri7BU-0EM5w000005vOtm.png?fit=max&auto=format&n=Bln2hKE_VIAav7eo&q=85&s=d3169d1e2bb5d4a8235cd597b591a5a7" width="623" height="446" data-path="images/kb/ka05w00000123is-00N5w00000Ri7BU-0EM5w000005vOtm.png" />
   </Frame>

Your output DataSet should incorporate the changes.
