--- /Soundex.java	2023-07-05 02:59:31.606051609 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Soundex.java	2023-07-05 02:59:31.610051609 +0200
@@ -165,7 +165,7 @@
      */
     private char getMappingCode(String str, int index) {
         // map() throws IllegalArgumentException
-        char mappedChar = this.map(str.charAt(index));
+char mappedChar = this.map ( str .toCharArray (  )   ) ;
         // HW rule check
         if (index > 1 && mappedChar != '0') {
             char hwChar = str.charAt(index - 1);
