Refactored string parsing and file reading into a helper class library. Added tests for string parsing.