how use wrap instead replace?

how use wrap instead replace?

i have great function for find word and replace with tags

  1. <$(function(){
  2. $(".title h1").html(function(i,text){
  3.     return text.replace(/\w+\s/, function(match){
  4.         return '<span>' + match + '</span>';
  5.     });
  6. });
  7. });
but i can't use this with cufon font replace.
Without Cufon.now()  - all works fine (first word black all others
blue) But if place Cufon.now() before </body> i get:

<cufon style="width: 50px; height: 28px;" alt="We " class="cufon cufon-
canvas">


where in cufon after < is black and all code is blue =) in html view I
get:


<h1>&lt;<span>cufon </span>style="width: 50px; height: 28px;" alt="We
" class="cufon cufon-canvas"&gt;


And a have question: how i can find second word then wrap it with <span> tag without replacement?