# Confusion between Char and String

**URL:** <https://discourse.julialang.org/t/confusion-between-char-and-string/58179>\
**Category:** General Usage\
**Tags:** bug\
**Created:** [March 29, 2021, 5:53pm UTC](https://discourse.julialang.org/t/confusion-between-char-and-string/58179 "2021-03-29T17:53:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wei\_Yang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wei_yang/32/23951_2.png) [@Wei\_Yang](https://discourse.julialang.org/u/Wei_Yang)\
**Post date:** [March 29, 2021, 5:53pm UTC](https://discourse.julialang.org/t/confusion-between-char-and-string/58179/1 "2021-03-29T17:53:53Z")

</div>

In the picture below, everything is suppose to be strings, but an error “Cannot convert Char to String” occurred.

Maybe this is a bug, or just me not doing it correctly, not sure.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/2/42451b0e558ed869a7df0e57504593339994489d.png)

---

<div class="post-metadata">

**Author:** ![cjdoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cjdoris/32/213133_2.png) [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Post date:** [March 29, 2021, 5:56pm UTC](https://discourse.julialang.org/t/confusion-between-char-and-string/58179/2 "2021-03-29T17:56:11Z")

</div>

I think you mean push!. The second argument of append! is an iterator - in your case a String, which iterates Char.

---

<div class="post-metadata">

**Author:** ![Wei\_Yang](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wei_yang/32/23951_2.png) [@Wei\_Yang](https://discourse.julialang.org/u/Wei_Yang)\
**Post date:** [March 29, 2021, 5:57pm UTC](https://discourse.julialang.org/t/confusion-between-char-and-string/58179/3 "2021-03-29T17:57:02Z")

</div>

I see!! Thank you!

Either  
append!(a,[“1” \* “2”])  
or  
push!(a,“1”\*“2”)  
works.
