Rewritten comparison to use localeCompare;
Rewritten add to work with the entire number at once.