refactor out duplicate code for string extensions
pull out the options logic and test it.
Merge pull request #6 from Andrew-Hagedorn-ZocDoc/RefactorOptionLogicAndTestIt

Refactor Options logic