# Problem with strings?

**URL:** <https://forum.kirupa.com/t/problem-with-strings/178599>\
**Category:** Uncategorized\
**Created:** [February 12, 2006, 12:25pm UTC](https://forum.kirupa.com/t/problem-with-strings/178599 "2006-02-12T12:25:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon12](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@simon12](https://forum.kirupa.com/u/simon12)\
**Post date:** [February 12, 2006, 12:25pm UTC](https://forum.kirupa.com/t/problem-with-strings/178599/1 "2006-02-12T12:25:09Z")

</div>

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”);
