Changed elemnt order, so that longer symbols will be priotized over shorter ones (e.g. Br before B)