--- /Metaphone.java	2023-07-05 02:32:15.230157532 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Metaphone.java	2023-07-05 02:32:15.234157533 +0200
@@ -319,9 +319,10 @@
 	private boolean isPreviousChar(StringBuffer string, int index, char c) {
 		boolean matches = false;
 		if( index > 0 &&
-		    index < string.length() ) {
-			matches = string.charAt(index - 1) == c;
-		}
+ 
+matches = (string.charAt((index - 1))) == c; 
+ 
+ 
 		return matches;
 	}
 
