# How to use String Strip Function Multi-column

**URL:** <https://forum.knime.com/t/how-to-use-string-strip-function-multi-column/60633>\
**Category:** KNIME Analytics Platform\
**Tags:** bug\
**Created:** [January 29, 2023, 4:52pm UTC](https://forum.knime.com/t/how-to-use-string-strip-function-multi-column/60633 "2023-01-29T16:52:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DiegoCorreiaXTL](https://forum-cdn.knime.com/user_avatar/forum.knime.com/diegocorreiaxtl/32/50109_2.png) [@DiegoCorreiaXTL](https://forum.knime.com/u/DiegoCorreiaXTL)\
**Post date:** [January 29, 2023, 4:52pm UTC](https://forum.knime.com/t/how-to-use-string-strip-function-multi-column/60633/1 "2023-01-29T16:52:00Z")

</div>

Hi all, I’m trying to eliminate blank spaces using the Strip function for Multicolumn but I’ve been getting the following error. I’m new to Knime, and could not find good resources on how to properly use the strip function.

 ![Screenshot 2023-01-29 114930](https://forum-cdn.knime.com/uploads/default/original/3X/c/0/c040a541eb5b795839e4135876232171d21b88b2.png)

![Screenshot 2023-01-29 115315](https://forum-cdn.knime.com/uploads/default/original/3X/b/e/be8be560cb0a2764024d6018f3253de280fbb2c1.png)

---

<div class="post-metadata">

**Author:** ![ArjenEX](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@ArjenEX](https://forum.knime.com/u/ArjenEX)\
**Post date:** [January 29, 2023, 4:56pm UTC](https://forum.knime.com/t/how-to-use-string-strip-function-multi-column/60633/2 "2023-01-29T16:56:36Z")

</div>

Hi @DiegoCorreiaXTL

Welcome to the KNIME Community!

The strip function can only be applied to columns of type string. You have integers in your list and probably also doubles based on the error. If you only have string columns in the list, the node will work.

---

<div class="post-metadata">

**Author:** ![DiegoCorreiaXTL](https://forum-cdn.knime.com/user_avatar/forum.knime.com/diegocorreiaxtl/32/50109_2.png) [@DiegoCorreiaXTL](https://forum.knime.com/u/DiegoCorreiaXTL)\
**Post date:** [January 29, 2023, 5:21pm UTC](https://forum.knime.com/t/how-to-use-string-strip-function-multi-column/60633/3 "2023-01-29T17:21:20Z")

</div>

Hi @ArjenEX,  
Got it. Thank you for the help.  
I’m not getting the error anymore, but when I execute the node, it replaces all my DATA. Am I missing anything?

 ![Screenshot 2023-01-29 121847](https://forum-cdn.knime.com/uploads/default/original/3X/f/a/fa79ce4c2a351ccf91a8696954e2d320c35c36d2.png)

---

<div class="post-metadata">

**Author:** ![ArjenEX](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@ArjenEX](https://forum.knime.com/u/ArjenEX)\
**Post date:** [January 29, 2023, 5:26pm UTC](https://forum.knime.com/t/how-to-use-string-strip-function-multi-column/60633/4 "2023-01-29T17:26:30Z")

</div>

Yes, $$CURRENTCOLUMN$$ is a variable. It does not require to be within quotes.

`strip($$CURRENTCOLUMN$$)` is the correct syntax.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/a/4/a442b21eaa12886a39f2e2ecd8bc83d042c7626e.png)

---

<div class="post-metadata">

**Author:** ![DiegoCorreiaXTL](https://forum-cdn.knime.com/user_avatar/forum.knime.com/diegocorreiaxtl/32/50109_2.png) [@DiegoCorreiaXTL](https://forum.knime.com/u/DiegoCorreiaXTL)\
**Post date:** [January 29, 2023, 5:29pm UTC](https://forum.knime.com/t/how-to-use-string-strip-function-multi-column/60633/5 "2023-01-29T17:29:44Z")

</div>

> [@ArjenEX](#):
>
> correct syntax.

That’s great! It worked now. Thank you so much for the help

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [February 5, 2023, 5:29pm UTC](https://forum.knime.com/t/how-to-use-string-strip-function-multi-column/60633/6 "2023-02-05T17:29:57Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
