Apache Commons `StringUtils.join` is very handy for this kind of thing