@@ -196,7 +196,7 @@ public static CharSequence clean(CharSequence str) {
196196
197197 /**
198198 * Trim <i>all</i> whitespace from the given String:
199- * leading, trailing, and inbetween characters.
199+ * leading, trailing, and intermediate characters.
200200 * @param str the String to check
201201 * @return the trimmed String
202202 * @see java.lang.Character#isWhitespace
@@ -253,7 +253,7 @@ public static String trimTrailingWhitespace(String str) {
253253 }
254254
255255 /**
256- * Trim all occurences of the supplied leading character from the given String.
256+ * Trim all occurrences of the supplied leading character from the given String.
257257 * @param str the String to check
258258 * @param leadingCharacter the leading character to be trimmed
259259 * @return the trimmed String
@@ -270,7 +270,7 @@ public static String trimLeadingCharacter(String str, char leadingCharacter) {
270270 }
271271
272272 /**
273- * Trim all occurences of the supplied trailing character from the given String.
273+ * Trim all occurrences of the supplied trailing character from the given String.
274274 * @param str the String to check
275275 * @param trailingCharacter the trailing character to be trimmed
276276 * @return the trimmed String
@@ -369,7 +369,7 @@ public static int countOccurrencesOf(String str, String sub) {
369369 }
370370
371371 /**
372- * Replace all occurences of a substring within a string with
372+ * Replace all occurrences of a substring within a string with
373373 * another string.
374374 * @param inString String to examine
375375 * @param oldPattern String to replace
0 commit comments