Determines whether a chemical formula is syntactically correct.