title: How can I move a word within a string?
body: <p>Is there a "native" way in Python 2.7 to move a word (space-delimited substring) within a longer string? Basically, what I'm looking for is:</p>
  
  <pre><code>ret = 'The quick brown fox jumps over the lazy dog'.move_word('quick',2)
  # ret = 'The brown fox quick jumps over the lazy dog'
  </code></pre>
  
  <p>My thought is to go about it by writing a function to split into a list, iterate through the list for matches, and then reorder as I find the word. My question is really about finding out if there are "slick"/Pythonic ways to do this instead.</p>
  
  <p>Thanks!</p>
  
  <p>EDIT: Per comments below: the numeric parameter in the example above was intended to specify a "delta" in number of words. For the above example, 2 was meant to mean "move 'quick' 2 words to the right".</p>