import static java.util.stream.Collectors.joining;
import static java.util.stream.Stream.of;
public String makeSomething(String text) {
return of(text.split(" "))
.map(f -> myMethod(f))
.collect(joining(" "));
}