I don't get it, why am I not passing the last check, I have made tons of tests and everything looks fine to me. Any advice?
package com.codegym.task.task08.task0823;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
/*
Going national
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
StringBuilder newString = new StringBuilder();
//write your code here
List<String> words = Arrays.asList(s.split(" "));
words.stream().forEach(word -> newString.append(word.replace(word.charAt(0), Character.toUpperCase(word.charAt(0))) + " "));
s = newString.toString();
System.out.println(s);
}
}