# Is it possible to remove white spaces in the middle of textbox

**URL:** https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [July 20, 2023, 2:57am UTC](https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719 "2023-07-20T02:57:08Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![wankhengyong349ml00b](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@wankhengyong349ml00b](https://community.thunkable.com/u/wankhengyong349ml00b)
#### Post date: [July 20, 2023, 2:57am UTC](https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719/1 "2023-07-20T02:57:08Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/6/e678bdec2b7bf9c930c61a10d95adb3bf4a77834.png)  
Is it possible to remove the spacing in the middle of the textbox when i press a button I know there is “trimming spaces from” box but is there a way to remove when the space is in the middle of the textbox?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [July 20, 2023, 4:25am UTC](https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719/2 "2023-07-20T04:25:33Z")

</div>

I’m not sure what you mean. I see “123 abc”. Is the value of the Text Input’s Text something else like this?

```auto
"123 abc "

```

---

<div class="post-metadata">

### Author: ![wankhengyong349ml00b](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@wankhengyong349ml00b](https://community.thunkable.com/u/wankhengyong349ml00b)
#### Post date: [July 20, 2023, 5:29am UTC](https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719/3 "2023-07-20T05:29:32Z")

</div>

“123 abc” just a space in the middle only

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [July 20, 2023, 5:54am UTC](https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719/4 "2023-07-20T05:54:24Z")

</div>

Are you wanting to convert “123 abc” to “123abc”? Please give a specific example.

**Edit:** you can use the Replace All block in the Text drawer to remove ALL spaces from a text string:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/3/3366c1f95822b8e78c1e2a6e39ac2fe57590cf3d.png)

Just change the “a” to " " (a space) and delete the “b”. Replace “abc” with your text input’s text.

---

<div class="post-metadata">

### Author: ![wankhengyong349ml00b](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@wankhengyong349ml00b](https://community.thunkable.com/u/wankhengyong349ml00b)
#### Post date: [July 20, 2023, 5:59am UTC](https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719/5 "2023-07-20T05:59:44Z")

</div>

ya trying to convert “123 abc” to “123abc” can it work for other text inputs? not just 123abc

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [July 20, 2023, 6:43am UTC](https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719/6 "2023-07-20T06:43:32Z")

</div>

Yes:

> [@tatiang](#):
>
> Just change the “a” to " " (a space) and delete the “b”. **Replace “abc” with your text input’s text**.

---

<div class="post-metadata">

### Author: ![wankhengyong349ml00b](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@wankhengyong349ml00b](https://community.thunkable.com/u/wankhengyong349ml00b)
#### Post date: [July 20, 2023, 6:53am UTC](https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719/7 "2023-07-20T06:53:40Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/0/d07be7b0e0c3dfd0623ce50b5c3330eb683034f9.png)  
It doesnt work for me when I try, These are the blocks I use.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [July 20, 2023, 7:03am UTC](https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719/8 "2023-07-20T07:03:03Z")

</div>

That’s almost it. The _replace all_ block already has quotes so you don’t need to add them. The box to the right of _replace all_ should only contain a space, nothing else. Delete everything in it and press the space bar once.

If you’re still having trouble, post a link to your project.

---

<div class="post-metadata">

### Author: ![wankhengyong349ml00b](https://avatars.discourse-cdn.com/v4/letter/w/da6949/32.png) [@wankhengyong349ml00b](https://community.thunkable.com/u/wankhengyong349ml00b)
#### Post date: [July 20, 2023, 7:06am UTC](https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719/9 "2023-07-20T07:06:52Z")

</div>

ok it works now thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [October 18, 2023, 7:07am UTC](https://community.thunkable.com/t/is-it-possible-to-remove-white-spaces-in-the-middle-of-textbox/2512719/10 "2023-10-18T07:07:36Z")

</div>

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