Ok, now I get what you mean. Well, `encoded_dup[temp.length-1]` wouldn’t work as it’s the character that is also the last in `temp`, but `encoded_dup[temp.length]` would work.