1. move file/dir existence checking to factory method
2. trim a record after stripping xml tags in TweetParser