# Split string

**URL:** <https://forum.uipath.com/t/split-string/23178>\
**Category:** Help\
**Tags:** variable, string, studio, system, activities\
**Created:** [2018年二月19日 16:31 UTC](https://forum.uipath.com/t/split-string/23178 "2018-02-19T16:31:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![arivu96](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@arivu96](https://forum.uipath.com/u/arivu96)\
**Post date:** [2018年二月19日 16:37 UTC](https://forum.uipath.com/t/split-string/23178/2 "2018-02-19T16:37:49Z")

</div>

Hi @pal1910,  
Use this code to get first value  
`strValue.ToString().split(" "c)(0)`

Refer this post

> [@Split String Issues](https://forum.uipath.com/t/split-string-issues/2577/2):
>
> Hey @nesachdeva please review the attached sample workflow and let me know. here you should split on the basis of space. str.Split({" "c}, StringSplitOptions.RemoveEmptyEntries) [splitstring.xaml](https://global.discourse-cdn.com/uipath/original/2X/7/702eea381750aca1b000b89893e75ea7b61fc010.xaml) (7.0 KB) Regards…!! Aksh

Regards,  
Arivu 🙂

---

_[View the full topic](https://forum.uipath.com/t/split-string/23178)._
