Clean up chemistry options input and validate tanimoto input.