code: public static String cleanParam(String[] strParams, boolean bSetDefault, String strDefault)
      {
          if ((strParams == null) || (strParams.length == 0))
              strParams = new String[1];
          if (strParams[0] == null) if (bSetDefault)
              strParams[0] = strDefault;
          if (strParams[0] == null)
              return null;
          try   {
              return URLDecoder.decode(strParams[0], DBConstants.URL_ENCODING);
          } catch (java.io.UnsupportedEncodingException ex) {
              return strParams[0];
          }
      }
docs: Clean-up the param string