Slight change where I was re-using an array of chars in the working code, now using a new array for bug-testing.