If that is really the requirement, why not just concatenate a new element to the delimited string directly? e.g.String original = getDelimitedString(); // whatever
String result = original + "|" +...