# Cut String

**URL:** <https://forum.uipath.com/t/cut-string/16198>\
**Category:** Help\
**Tags:** string, studio, system, activities\
**Created:** [November 23, 2017, 11:22am UTC](https://forum.uipath.com/t/cut-string/16198 "2017-11-23T11:22:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![fpradas](https://avatars.discourse-cdn.com/v4/letter/f/53a042/32.png) [@fpradas](https://forum.uipath.com/u/fpradas)\
**Post date:** [November 23, 2017, 11:22am UTC](https://forum.uipath.com/t/cut-string/16198/1 "2017-11-23T11:22:02Z")

</div>

Hello, I have a question that I am not able to solve. I have a string ("3214521-Factura.pdf) for example, I would like to first cut the string (remove ".pdf “) and then separate the numbers from the word after the script (on the one hand” 3214521 "and on the other hand “Invoice”) Is it possible to do this?

To cut strings I’ve seen “split” out there but I’m not able to use it in UiPath.

Thank you very much.

---

<div class="post-metadata">

**Author:** ![rahamtullah](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rahamtullah/32/11589_2.png) [@rahamtullah](https://forum.uipath.com/u/rahamtullah)\
**Post date:** [November 23, 2017, 11:34am UTC](https://forum.uipath.com/t/cut-string/16198/2 "2017-11-23T11:34:51Z")

</div>

Hi,

Please find below screenshots showing Split String activity.

 ![Capture](https://global.discourse-cdn.com/uipath/original/2X/e/e3a24f5c5cc4067c653d165e3cc7cffd99344097.JPG) ![Capture1](https://global.discourse-cdn.com/uipath/original/2X/c/c37343fb696d3b06d648eab8c1d25cd388a4889f.JPG) ![Capture2](https://global.discourse-cdn.com/uipath/original/2X/2/263e51009ad2a17abbd4ff73ae98d5c92f1ac84b.JPG)

Regards,  
Rahamat

---

<div class="post-metadata">

**Author:** ![Mr\_JDavey](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mr_jdavey/32/1001_2.png) [@Mr\_JDavey](https://forum.uipath.com/u/Mr_JDavey)\
**Post date:** [November 23, 2017, 11:56am UTC](https://forum.uipath.com/t/cut-string/16198/3 "2017-11-23T11:56:39Z")

</div>

Hi there @fpradas  
You can do the following:

```
Assign - strMyString = "3214521-Factura.pdf"
Assign - arrMyStrings = strMyString.Split(Char.Parse("."))
Assign - strNumbers = arrMyString(0).Split(Char.Parse("-"))(0)
Assign - strText = arrMyString(0).Split(Char.Parse("-"))(1)

```

Your required outputs will be:

- strNumbers (“3214521”)
- strText (“Factura”)

Thanks,  
Josh

---

<div class="post-metadata">

**Author:** ![fpradas](https://avatars.discourse-cdn.com/v4/letter/f/53a042/32.png) [@fpradas](https://forum.uipath.com/u/fpradas)\
**Post date:** [November 23, 2017, 12:20pm UTC](https://forum.uipath.com/t/cut-string/16198/4 "2017-11-23T12:20:53Z")

</div>

Ok, thanks.  
I do not have that activity. What package of activities have you installed?

---

<div class="post-metadata">

**Author:** ![Mr\_JDavey](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mr_jdavey/32/1001_2.png) [@Mr\_JDavey](https://forum.uipath.com/u/Mr_JDavey)\
**Post date:** [November 23, 2017, 12:51pm UTC](https://forum.uipath.com/t/cut-string/16198/5 "2017-11-23T12:51:59Z")

</div>

Hi there @fpradas,  
Did you get it working with the activities noted by @rahamtullah?

Thanks,  
Josh

---

<div class="post-metadata">

**Author:** ![fpradas](https://avatars.discourse-cdn.com/v4/letter/f/53a042/32.png) [@fpradas](https://forum.uipath.com/u/fpradas)\
**Post date:** [November 23, 2017, 1:51pm UTC](https://forum.uipath.com/t/cut-string/16198/6 "2017-11-23T13:51:18Z")

</div>

yes!!

---

<div class="post-metadata">

**Author:** ![vivekupadhyay](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivekupadhyay/32/263421_2.png) [@vivekupadhyay](https://forum.uipath.com/u/vivekupadhyay)\
**Post date:** [December 12, 2017, 10:45am UTC](https://forum.uipath.com/t/cut-string/16198/7 "2017-12-12T10:45:07Z")

</div>

Good Job

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [October 29, 2018, 9:24am UTC](https://forum.uipath.com/t/cut-string/16198/8 "2018-10-29T09:24:07Z")

</div>

Closed on October 29, 2018, 9:24am UTC


