add some adjusts at reverse string algorithm
Merge branch 'cirocosta-reverse-str'

* cirocosta-reverse-str:
  add some adjusts at reverse string algorithm