# What is a SimpleVector? How to convert it to a String

**URL:** <https://discourse.julialang.org/t/what-is-a-simplevector-how-to-convert-it-to-a-string/10875>\
**Category:** General Usage\
**Created:** [May 13, 2018, 11:23pm UTC](https://discourse.julialang.org/t/what-is-a-simplevector-how-to-convert-it-to-a-string/10875 "2018-05-13T23:23:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roger-luo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/roger-luo/32/3399_2.png) [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Post date:** [May 13, 2018, 11:23pm UTC](https://discourse.julialang.org/t/what-is-a-simplevector-how-to-convert-it-to-a-string/10875/1 "2018-05-13T23:23:15Z")

</div>

I find that `DocStr` uses `SimpleVector` to store the text, I would like to convert it back to a `String`, is it possible? How?

---

<div class="post-metadata">

**Author:** ![Roger-luo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/roger-luo/32/3399_2.png) [@Roger-luo](https://discourse.julialang.org/u/Roger-luo)\
**Post date:** [May 13, 2018, 11:25pm UTC](https://discourse.julialang.org/t/what-is-a-simplevector-how-to-convert-it-to-a-string/10875/2 "2018-05-13T23:25:10Z")

</div>

Just found out myself… simply indexing can do.

---

<div class="post-metadata">

**Author:** ![jandehaan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jandehaan/32/6805_2.png) [@jandehaan](https://discourse.julialang.org/u/jandehaan)\
**Post date:** [May 13, 2018, 11:58pm UTC](https://discourse.julialang.org/t/what-is-a-simplevector-how-to-convert-it-to-a-string/10875/3 "2018-05-13T23:58:32Z")

</div>

```julia
julia> x = Core.svec("abc")
svec("abc")

julia> typeof(x)
SimpleVector

julia> y = x[1]
"abc"

julia> typeof(y)
String
```
