How to add prefix to each word in a given string
<p>I want to add prefix to every word in a given string. My code is :-</p>

<pre><code>StringBuilder strColsToReturns  = new StringBuilder();
String strPrefix                = "abc.";
strColsToReturns.append(String.format(" %sId, %sname, %stype,", strPrefix, strPrefix, strPrefix));
</code></pre>

<p>This is fine, for small string, but I have a very large static string like this. So, this method of adding string prefix looks like a tedious method. Is there any other sophisticated way to achieve this.</p>