void (String string, List<Object> result) { if (StringUtil.isEmpty(string)) return; int size = result.size(); Object last = size > 0? result.get(size -1) : null; if (last instanceof String) { result.set(size - 1, last + string); } else { result.add(string); } }