# Working with strings

**URL:** https://forum.kirupa.com/t/working-with-strings/200012
**Category:** Uncategorized
**Created:** [September 7, 2006, 11:31pm UTC](https://forum.kirupa.com/t/working-with-strings/200012 "2006-09-07T23:31:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RileyBoy](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@RileyBoy](https://forum.kirupa.com/u/RileyBoy)
#### Post date: [September 7, 2006, 11:31pm UTC](https://forum.kirupa.com/t/working-with-strings/200012/1 "2006-09-07T23:31:01Z")

</div>

let’s say i have a variable:

var subscribers:String = “122 million”;

but I only want “122” to show up in my textfield, subscriberNum. How would I do that?

Keep in mind that the number could be “5” or it could be “50” or “500”, so i can’t necesarrily just display the first 3 index positions, because I may only need the first position…
