Replace a substring when it is a separate word,"re.sub('\\bH3\\b', 'H1', text)"