Refactored the hashtag parser to be a sent-in function