# Why isn't the method/constructor String(v::AbstractVector{UInt8}) actually called String!

**URL:** <https://discourse.julialang.org/t/why-isnt-the-method-constructor-string-v-abstractvector-uint8-actually-called-string/18575>\
**Category:** Internals & Design\
**Created:** [December 11, 2018, 8:16pm UTC](https://discourse.julialang.org/t/why-isnt-the-method-constructor-string-v-abstractvector-uint8-actually-called-string/18575 "2018-12-11T20:16:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndinsmore](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ndinsmore/32/7433_2.png) [@ndinsmore](https://discourse.julialang.org/u/ndinsmore)\
**Post date:** [December 11, 2018, 8:16pm UTC](https://discourse.julialang.org/t/why-isnt-the-method-constructor-string-v-abstractvector-uint8-actually-called-string/18575/1 "2018-12-11T20:16:26Z")

</div>

I just got bitten by a bug that took a while to trace to the behavior of ` String(v::AbstractVector{UInt8})`

which modified( or as the documentation says truncates) its input. Further reading brings me to believe that the other String Methods do not do this.

Which begs the question why isn’t this method renamed ‘String!’? This would make it consistent with the typical naming convention.

Forgive me if this has already been covered.

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [December 12, 2018, 6:48am UTC](https://discourse.julialang.org/t/why-isnt-the-method-constructor-string-v-abstractvector-uint8-actually-called-string/18575/2 "2018-12-12T06:48:16Z")

</div>

I think this is a valid point, I wondered about this too. (_Perhaps change the category to Development?_)

---

<div class="post-metadata">

**Author:** ![laborg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laborg/32/5474_2.png) [@laborg](https://discourse.julialang.org/u/laborg)\
**Post date:** [December 12, 2018, 8:16am UTC](https://discourse.julialang.org/t/why-isnt-the-method-constructor-string-v-abstractvector-uint8-actually-called-string/18575/3 "2018-12-12T08:16:22Z")

</div>

I think this issue might be of relevance: [https://github.com/JuliaLang/julia/issues/24388](https://github.com/JuliaLang/julia/issues/24388)
