check tableName for invalid characters