This checks if string is not empty before extracting its first character and comparing it, case-insensitively, to "s" and avoid errors with empty strings.
words.removeIf(name -> !name.isEmpty() && name.substring(0, 1).equalsIgnoreCase("s"));