title: java Manipulating a string (inserting a letter in front of every character after a space)
body: <p>if I have a string which looks something like <code>string="1 3 5 8 15"</code> and I want to manipulate that string such a way that in front of every non space character (which will always be a number) I insert a letter for example <code>D</code> and the new string will become <code>string ="D1 D3 D5 D8 D15"</code>. In my particular code, the initial string is inputed by the user if thats of any relevance, and the string characters are always single or double digits.</p>