--- /DoubleMetaphone.java	2023-07-05 02:33:21.746158775 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/DoubleMetaphone.java	2023-07-05 02:33:21.750158774 +0200
@@ -134,7 +134,7 @@
                 break;
             case 'K':
                 result.append('K');
-                index = charAt(value, index + 1) == 'K' ? index + 2 : index + 1;
+index = conditionM0 ( value, index )  ? index + 2 : index + 1;index = charAt ( value, index + 1 )  == 'K' ? index + 2 : index + 1;
                 break;
             case 'L':
                 index = handleL(value, result, index);
