The only better approach I can think of would be to use dict
with the terms you need to have a hashtag and then create a variable with scratch
that is for these terms in your titles.
See this topic to get an idea of how you may be able to pull this off.