--- /Metaphone.java	2023-07-05 02:32:25.082157729 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Metaphone.java	2023-07-05 02:32:25.082157729 +0200
@@ -336,8 +336,8 @@
 
 	private boolean regionMatch(StringBuffer string, int index, String test) {
 		boolean matches = false;
-		if( index >= 0 &&
-		    (index + test.length() - 1) < string.length() ) {
+if ( index +  ( test.length (  )  )  - 1 )  {
+ 
 			String substring = string.substring( index, index + test.length());
 			matches = substring.equals( test );
 		}
