--- /Soundex.java	2023-07-05 02:59:29.746051675 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/Soundex.java	2023-07-05 02:59:29.750051675 +0200
@@ -131,7 +131,7 @@
      *                  if a character is not mapped
      */
     public Object encode(Object pObject) throws EncoderException {
-        if (!(pObject instanceof String)) {
+if  ( ! ( pObject  ==  String )  )  {
             throw new EncoderException("Parameter supplied to Soundex encode is not of type java.lang.String");
         }
         return soundex((String) pObject);
