title: Replace multiple words in a string ln java like php str_replace
body: <p>I need to find a similar slick way in java to do multi string replace the same way you can do this in php with str_replace.  </p>
  
  <p>I want to take a string and then returns a string with the numbers 1 to 10 replaced with the word for those numbers. </p>
  
  <p>"I won 7 of the 10 games and received 30 dollars." => "I won seven of the ten games and received 30 dollars."  </p>
  
  <p>In php, you can do:</p>
  
  <pre><code>function replaceNumbersWithWords($phrase) { 
  
    $numbers = array("1", "2", "3","4","5","6","7","8","9","10");
    $words   = array("one", "two", "three","four","five","six","seven","eight","nine","ten");
    return str_replace($numbers,$words,$phrase);
  
  }
  </code></pre>
  
  <p>I'm not sure there is an elegant way to do regular expressions on this particular case with String.replace(), and I don't want to use what I feel is a brute force approach to do this:  like here: 
  <a href="https://stackoverflow.com/questions/6745154/how-to-replace-multiple-words-in-a-single-string-in-java">How to replace multiple words in a single string in Java?</a>.  </p>