There is an instance of a lambda expression which takes a string and converts all characters to upper case:
Function<String, String> toUpperCase = s -> s.toUpperCase();Change the lambda expression (right part) to a method reference which does the same.