Add auto-pair comments when hashtag is pressed while string is selected