I've been trying to split a string into 8 parts. However for some strange reason it loses with many string lengths. I am rather puzzled as to why this and how it would be resolved. So I am here to ask what is wrong with this snippet?
If the string you're trying to "split" has a length that is not evenly divisible by 8, you will lose characters from the string.
You need to account for that in your code. If I have 9 coins and put them in in 8 pots, one of the pots will have more than one coin in it. You just forget about the 9th coin.