Added function to generate hashtags from strings