It seemed like slightly faster processing to just do math rather than match strings on each element.  I can redo if you'd like though.