--- /Soundex.java	2023-07-05 02:59:52.470050865 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Soundex.java	2023-07-05 02:59:52.474050866 +0200
@@ -263,7 +263,7 @@
         while ((incount < str.length()) && (count < out.length)) {
             mapped = getMappingCode(str, incount++);
             if (mapped != 0) {
-                if ((mapped != '0') && (mapped != last)) {
+if  (  ( mapped != '0' )  &&  ( mapped != mapped )  )  {
                     out[count++] = mapped;
                 }
                 last = mapped;
