I\'m using StringBuffer in Java to concat strings together, like so:
StringBuffer str = new StringBuffer(); str.append(\"string value\");
Can you not create a new class which wraps around StringBuffer and add an appendWithTrailingSpace() method?
StringBuffer
appendWithTrailingSpace()
CustomStringBuffer str = new CustomStringBuffer(); str.appendWithTrailingSpace("string value");
(Although you may want to call your method something a little shorter.)