Problem with strings?

after trying to isolate a word in a txt file (as in kirupa`s tutorial)itried isolating the letters of the word via the same method,but that doesnt seem to work…ca anybody tell me why?
code:
words = new Array();
letters=new Array();
lv = new LoadVars();
lv.onLoad = function() {
fl = this.wordlist;
words = fl.split(",");
c = words.length;
ran=Math.floor(Math.random() *c)
trace(words[ran]);
letters=words[ran].split(" ");
g =letters.length;
trace(g)
for (j=0; j<g; j++) {
trace(letters[g]); }

};
lv.load(“words.txt”);