# String Indexing - Alright, what am I missing?

**URL:** <https://discourse.julialang.org/t/string-indexing-alright-what-am-i-missing/47018>\
**Category:** New to Julia\
**Created:** [September 21, 2020, 3:41pm UTC](https://discourse.julialang.org/t/string-indexing-alright-what-am-i-missing/47018 "2020-09-21T15:41:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kevbonham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kevbonham/32/216165_2.png) [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Post date:** [September 21, 2020, 4:00pm UTC](https://discourse.julialang.org/t/string-indexing-alright-what-am-i-missing/47018/3 "2020-09-21T16:00:27Z")

</div>

> [@affans](#):
>
> First of all, use backticks ````` to annotate your code for readibility. Use single ticks for inline code and triple ticks for block code.

More info [here](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757) 🙂

> [@SergeantMike67](#):
>
> ```julia
> s1 = “ACGTACT”
> s2 = “ACTACGT”
> 
> for h in eachindex(s1), v in eachindex(s2)
> if s1[h] == s2[v]
> intCellFactor = 1
> elseif s1[h] != s2[v]
> intCellFactor = 0
> end
> end
> 
> ```

Let me guess… working on Needleman Wunch? This looks suspiciously like code I wrote very early on when I was learning julia 😆

---

_[View the full topic](https://discourse.julialang.org/t/string-indexing-alright-what-am-i-missing/47018)._
