code: public static final String formatTableNames(String strTableNames, boolean bAddQuotes)
      {
          if (bAddQuotes)
              if (strTableNames.indexOf(' ') != -1)
                  strTableNames = BaseField.addQuotes(strTableNames, DBConstants.SQL_START_QUOTE,  DBConstants.SQL_END_QUOTE);    // Spaces in name, quotes required
          return strTableNames;
      }
docs: Utility routine to add quotes to a string if the string contains a space.
  @param strTableNames The table name to add quotes to if there is a space in the name.
  @param bAddQuotes Add the quotes?
  @return The new quoted table name.