Format string as currency
<p>I have <code>string</code> variable that contain price. For example, <code>10000</code>.  I want  use a space for thousand separator.<br>
e.g. display <code>10000</code> as <code>10 000</code>, <code>150000</code> as <code>150 000</code><br>
How can I do this?   </p>
