jdunck broken
Refactored code from interview and after to condense code, relabel variables, set a default value for keys created in a hash and add guards. Also caught logic error regarding stripping the endmarks from a capitalized key vs. value.