Fixed StringIndexOutOfBoundsException on Connect SDK