Combination of word of string only replacing space
<p>I am trying to find the all combination of words of string in particular format for example</p>

<pre><code>string="hello python world"
</code></pre>

<p>the output format must be like </p>

<pre><code>'hello python world, hellopython world, hello pyhtonworld, hellopythonworld'
</code></pre>