--- /RefinedSoundex.java	2023-07-05 03:07:03.650036541 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/language/RefinedSoundex.java	2023-07-05 03:07:03.654036542 +0200
@@ -111,7 +111,7 @@
 	 *                  if the parameter supplied is not of type java.lang.String
 	 */
     public Object encode(Object pObject) throws EncoderException {
-        if (!(pObject instanceof java.lang.String)) {
+if  ( ! ( pObject  ||  java.lang.String )  )  {
             throw new EncoderException("Parameter supplied to RefinedSoundex encode is not of type java.lang.String");
         }
         return soundex((String) pObject);
