# Removing spaces from a string

**URL:** <https://forum.kirupa.com/t/removing-spaces-from-a-string/40171>\
**Category:** flash\
**Created:** [January 15, 2004, 12:02pm UTC](https://forum.kirupa.com/t/removing-spaces-from-a-string/40171 "2004-01-15T12:02:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scotty\_boy](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@scotty\_boy](https://forum.kirupa.com/u/scotty_boy)\
**Post date:** [January 15, 2004, 12:02pm UTC](https://forum.kirupa.com/t/removing-spaces-from-a-string/40171/1 "2004-01-15T12:02:17Z")

</div>

How can I remove spaces from a string taken from an input text box. I am guessing I will have to use a for loop of some kind as I don’t know where the spaces will be until the user has filled in the text box.
