# C# - pick characters in a string list and convert it to a new string

**URL:** <https://discourse.mcneel.com/t/c-pick-characters-in-a-string-list-and-convert-it-to-a-new-string/111819>\
**Category:** Grasshopper Developer\
**Created:** [November 8, 2020, 7:05pm UTC](https://discourse.mcneel.com/t/c-pick-characters-in-a-string-list-and-convert-it-to-a-new-string/111819 "2020-11-08T19:05:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghazal.refalian](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/ghazal.refalian/32/481362_2.png) [@ghazal.refalian](https://discourse.mcneel.com/u/ghazal.refalian)\
**Post date:** [November 8, 2020, 7:05pm UTC](https://discourse.mcneel.com/t/c-pick-characters-in-a-string-list-and-convert-it-to-a-new-string/111819/1 "2020-11-08T19:05:57Z")

</div>

Hello there,  
I have a list of strings in lines which I want to pick the first letter of each string and convert it to one string.  
what I do is that I copy the main list to a panel with multiline data like this:  
F=AB  
A=–x+x  
B=y

and then I take the [index 0] and receive another list of strings like:  
F  
A  
B  
I am not sure if it is a list… it behaves like multiple items and Later I cannot Join them to one string.  
Also if I give the first latters manually (List Item), when I Join them (string.Join), it returns this:

FAB  
FAB  
FAB

and repeats the string three times. I don’t understand why. I don’t understand if the input list behaves like a List or an Array or something else…  
is there a good way to pick some characters in a list of string and join them as one string?

---

<div class="post-metadata">

**Author:** ![DavidRutten](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/davidrutten/32/755688_2.png) [@DavidRutten](https://discourse.mcneel.com/u/DavidRutten)\
**Post date:** [November 8, 2020, 7:56pm UTC](https://discourse.mcneel.com/t/c-pick-characters-in-a-string-list-and-convert-it-to-a-new-string/111819/2 "2020-11-08T19:56:49Z")

</div>

Without code it’s basically impossible to help…
