Switched to Java 8 in order to use "String.join".