Fixes hashtag parsing and extracting when terminated with square brackets