Replace for loop with stream().forEach