note
JavaFan
So, you have "F", "B", a space, "D" and want to turn that into "F", comma, space, "B", comma, space, "D"? The simplest way is:
<code>
$str = "F, B, D" if $str eq "FB D";
</code>
Are we free to generalize this? Here's a broad generalization:
<code>
$str = "F, B, D";
</code>
Or do you want something else? Perhaps you can describe it, instead of assume we're all omniscient, and can deduce what you want from a single example, and some botched code.
836061
836061