Set<String> result = list.stream() .filter( s -> Character.isUpperCase(s.charAt(0)) ) .collect( Collectors.toSet() );