Search And Replace Problem

I’m having trouble setting my text box correctly after I do a search and replace. Should be obvious but my variable that I’m passing in is called songTitle and the text box instance name is songTitle_txt. Here is my current code. Any help would be appreciated.


function loadXML(loaded) {
    if (loaded) {
        xmlNode = this.firstChild;
        songTitle = xmlNode.childNodes[8].childNodes[0];
        songTitle = songTitle.searchReplace(" - ", ": ");
        songTitle = songTitle_txt.text.toUpperCase();
    } else {
        content = "file not loaded!";
    }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://www.crylounge.com/shoutcast.php");

String.prototype.searchReplace = function(find, replace) {
    var myarray = this.split(" ");
    for (var i = 0; i<myarray.length; i++) {
        if (myarray* == find) {
            myarray* = replace;
        }
    }
    return myarray.join(" ");
};

Thanks,
Saveth