add empirical formula parenthesis compatibility