diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index b0922335..203bc5bb 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -1164,10 +1164,10 @@ public final class CSVFormat implements Serializable { int len = count; int pos = 0; - while (pos < len && charSequence.charAt(pos) <= Constants.SP) { + while (pos < len && charSequence.charAt(pos) <= SP) { pos++; } - while (pos < len && charSequence.charAt(len - 1) <= Constants.SP) { + while (pos < len && charSequence.charAt(len - 1) <= SP) { len--; } return pos > 0 || len < count ? charSequence.subSequence(pos, len) : charSequence;