You cannot sort out that sort of error in code. You need to work out what you are doing and what the lengths of the different arrays are. What does += 8 mean? Are you looking for every eight character? Where does the 7 come from? What makes you think you will have an 8‑element array? Why are you using that strange method to write a loop? Do you know what the common form of a for loop is? Did you know there is a reason for using that common form: it always works?
There is no beard big enough to make me comfortable enough with my masculinity to wear pink. Tiny ad: