Refactoring

Added trim() on format; alphabetKey to an object and refactored
letter/value assignment; remove unnecessary object definition; created
addition, reduceAll, and reduce functions