String s = "apples for you"; StringBuilder returnString = new StringBuilder(""); Arrays.stream(s.split(" ")).reduce(returnString, (acc, str