# delete leading and trailing spaces in a row

**URL:** <https://forum.knime.com/t/delete-leading-and-trailing-spaces-in-a-row/12673>\
**Category:** KNIME Analytics Platform\
**Created:** [November 22, 2018, 11:59am UTC](https://forum.knime.com/t/delete-leading-and-trailing-spaces-in-a-row/12673 "2018-11-22T11:59:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![umutcankurt](https://forum-cdn.knime.com/user_avatar/forum.knime.com/umutcankurt/32/70644_2.png) [@umutcankurt](https://forum.knime.com/u/umutcankurt)\
**Post date:** [November 22, 2018, 11:59am UTC](https://forum.knime.com/t/delete-leading-and-trailing-spaces-in-a-row/12673/1 "2018-11-22T11:59:59Z")

</div>

Hello;  
In a column in the data I get in Excel, I have a different number of spaces at the beginning and end of the data and I can’t filter the column for this reason. How do I solve the initial and trailing spaces in cells?

the number of initial and trailing blank characters in each row is different (I can’t filter)

I’m trying to select from there when I see the (Row filter) information in the column doesn’t work.

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

---

<div class="post-metadata">

**Author:** ![qqilihq](https://forum-cdn.knime.com/user_avatar/forum.knime.com/qqilihq/32/50_2.png) [@qqilihq](https://forum.knime.com/u/qqilihq)\
**Post date:** [November 22, 2018, 12:31pm UTC](https://forum.knime.com/t/delete-leading-and-trailing-spaces-in-a-row/12673/2 "2018-11-22T12:31:08Z")

</div>

Hi,

you can use the **String Manipulation** ’s strip(…) function:

> Strips any whitespace characters from the beginning and end of given strings.

> **[String Manipulation — NodePit](https://nodepit.com/node/org.knime.base.node.preproc.stringmanipulation.StringManipulationNodeFactory)**
>
> Manipulates strings like search and replace,
> capitalize or remove leading and trailing white spaces.

Best,  
Philipp

---

<div class="post-metadata">

**Author:** ![umutcankurt](https://forum-cdn.knime.com/user_avatar/forum.knime.com/umutcankurt/32/70644_2.png) [@umutcankurt](https://forum.knime.com/u/umutcankurt)\
**Post date:** [November 22, 2018, 7:23pm UTC](https://forum.knime.com/t/delete-leading-and-trailing-spaces-in-a-row/12673/3 "2018-11-22T19:23:41Z")

</div>

Well  
Is this formula-like solution applicable in excel?

**=PROPER(Text)**

 ![image](https://forum-cdn.knime.com/uploads/default/original/2X/d/db4a58b83a764d95b714732e2c3b10639d9a9b90.png)

---

<div class="post-metadata">

**Author:** ![izaychik63](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/i/e9a140/32.png) [@izaychik63](https://forum.knime.com/u/izaychik63)\
**Post date:** [November 22, 2018, 7:48pm UTC](https://forum.knime.com/t/delete-leading-and-trailing-spaces-in-a-row/12673/4 "2018-11-22T19:48:33Z")

</div>

You’ll need LowerCase and Capitalize functions used together.

---

<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:** [November 29, 2018, 7:48pm UTC](https://forum.knime.com/t/delete-leading-and-trailing-spaces-in-a-row/12673/5 "2018-11-29T19:48:34Z")

</div>

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