Fixed bug in StringPractice/generateWords

Miscounted the required memory in the words array.