String (List<String> list) { String sb; System.out.println("hello"); sb = list.stream().filter(s -> !s.isEmpty()).map(String::trim).collect(Collectors.joining("", "1" + 2, "")); return sb.length() == 0 ? null : sb; }