additional string cleanup prevention added to checking table names