Interesting solution. I've overlooked a lot of the functionality of strscan, so that is worth knowing about. The approach for generating mnemonics was nice as well, as well as the reverse sort by negation. Thank you, Hugh