# \[Solved\] Delete letters from the beginning of text?

**URL:** <https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051>\
**Category:** Questions about Thunkable X\
**Tags:** solved, beginner\
**Created:** [February 23, 2019, 2:12pm UTC](https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051 "2019-02-23T14:12:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![point](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/point/32/113590_2.png) [@point](https://community.thunkable.com/u/point)\
**Post date:** [February 23, 2019, 2:12pm UTC](https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051/1 "2019-02-23T14:12:30Z")

</div>

How do I delete a number of letters from the beginning of the text?

---

<div class="post-metadata">

**Author:** ![darren](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/darren/32/69854_2.png) [@darren](https://community.thunkable.com/u/darren)\
**Post date:** [February 23, 2019, 4:25pm UTC](https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051/2 "2019-02-23T16:25:47Z")

</div>

@point, check out this `get substring from text` block. The example below returns the string “Text”.

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

Happy Coding!

Darren  
[Thunkable X Tutorials](https://www.youtube.com/channel/UCHDDjy-6nbgwdrJpSZIfCOA)

---

<div class="post-metadata">

**Author:** ![gpo](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gpo](https://community.thunkable.com/u/gpo)\
**Post date:** [August 12, 2020, 1:49am UTC](https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051/3 "2020-08-12T01:49:55Z")

</div>

Hey Darren: How would you get a substring that cuts off the end of a string. For example, “Los Angeles, CA, 90032, USA”

I want to pick up “Los Angeles, CA” but the data will different on every record. The next one might be “Tucson, AZ, 89002, USA” and I only want “Tucson, AZ”

Thanks Darren

George

---

<div class="post-metadata">

**Author:** ![gpo](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gpo](https://community.thunkable.com/u/gpo)\
**Post date:** [August 12, 2020, 2:46am UTC](https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051/5 "2020-08-12T02:46:58Z")

</div>

The text functions do not seem to let me choose the second or third occurrence, just first or last…

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 12, 2020, 8:57am UTC](https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051/7 "2020-08-12T08:57:44Z")

</div>

![изображение](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f0d61134fd3ccc2ebcd5231e980792a8934dffb5.png)

---

<div class="post-metadata">

**Author:** ![gpo](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gpo](https://community.thunkable.com/u/gpo)\
**Post date:** [August 12, 2020, 2:45pm UTC](https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051/8 "2020-08-12T14:45:44Z")

</div>

![Screen Shot 2020-08-12 at 7.39.26 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/d/0d765a6478227055769d282a495b387248ae20c7.png)

actech: Seems like it wants to work, but I cannot get the substring to show up on the screen. Any further help is appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [August 13, 2020, 8:42am UTC](https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051/9 "2020-08-13T08:42:19Z")

</div>

To find an error, you need to look at the value of all the blocks with app variables. Perhaps there are incorrect values somewhere in them. If you use app blocks, you don’t need the parameters in the function, but you left them for some reason.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [August 13, 2020, 12:41pm UTC](https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051/10 "2020-08-13T12:41:31Z")

</div>

Here’s a simplified (i.e. less dynamically configurable) version of the above that works fine for me:

 ![Screenshot 2020-08-13 at 13.39.06](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/8/f87ccbe2d4670606f29c01c7228c43fb9fff55ab.png)

Here’s the project page link to try:  
[https://x.thunkable.com/projectPage/5f352f3b547fca46f78f550a/](https://x.thunkable.com/projectPage/5f352f3b547fca46f78f550a/)

---

<div class="post-metadata">

**Author:** ![gpo](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gpo](https://community.thunkable.com/u/gpo)\
**Post date:** [August 13, 2020, 2:55pm UTC](https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051/11 "2020-08-13T14:55:42Z")

</div>

Thanks to both of you. I now have this working. My use case was pulling a formatted address from the Open Cage API. The addresses include street, city, state, zip, and country. My users will know state, zip and country, so they do need to be displayed. So the methods you guys provided allow me to get a clean display of just “street” or “street, city.” Appreciate the help and the rapid turnaround.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:16pm UTC](https://community.thunkable.com/t/solved-delete-letters-from-the-beginning-of-text/70051/13 "2024-11-08T12:16:14Z")

</div>


