If I have html like this:
This is some text First span text
Simple answer:
$("#listItem").contents().filter(function(){ return this.nodeType == 3; })[0].nodeValue = "The text you want to replace with"