diff --git a/src/main/java/core/basesyntax/FileWork.java b/src/main/java/core/basesyntax/FileWork.java index 39158e23..290cf54f 100644 --- a/src/main/java/core/basesyntax/FileWork.java +++ b/src/main/java/core/basesyntax/FileWork.java @@ -51,7 +51,7 @@ public List wordSeparator(String line) { List words = List.of(line.split(PUNCTUALITY_REG_EX)); List formattedWords = new ArrayList<>(); for (String word : words) { - formattedWords.add(wordFormatter(word)); + formattedWords.add(wordFormatter(word).toLowerCase()); } return formattedWords; }