--- /Soundex.java	2023-07-05 02:22:33.646134118 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Soundex.java	2023-07-05 02:22:33.650134118 +0200
@@ -257,7 +257,7 @@
         char out[] = {'0', '0', '0', '0'};
         char last, mapped;
         int incount = 1, count = 1;
-        out[0] = str.charAt(0);
+out[0] = s2.charAt ( 0 ) ;
         // getMappingCode() throws IllegalArgumentException
         last = getMappingCode(str, 0);
         while ((incount < str.length()) && (count < out.length)) {
