# Trim away heading and trailing spaces in flash input text field

**URL:** <https://forum.kirupa.com/t/trim-away-heading-and-trailing-spaces-in-flash-input-text-field/304136>\
**Category:** flash\
**Created:** [February 2, 2010, 10:04am UTC](https://forum.kirupa.com/t/trim-away-heading-and-trailing-spaces-in-flash-input-text-field/304136 "2010-02-02T10:04:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etud3](https://avatars.discourse-cdn.com/v4/letter/e/6a8cbe/32.png) [@Etud3](https://forum.kirupa.com/u/Etud3)\
**Post date:** [February 2, 2010, 10:04am UTC](https://forum.kirupa.com/t/trim-away-heading-and-trailing-spaces-in-flash-input-text-field/304136/1 "2010-02-02T10:04:18Z")

</div>

Hi,

I need to trim away away all the extra spaces that a users types into my input text field. I know that there are a few ways possible, but i’m not sure how to go about doing it. Could someone help?

Thanks!
