old_contents: # ====== Host all the text definition =======
  import re
  
  _WORD_REGEX_STR = r'\S+'
  _WORD_BOUNDARY_REGEX_STR = r'\s'
  
  WORD_REGEX = re.compile(_WORD_REGEX_STR, re.UNICODE)
  
new_contents: # ====== Host all the text definition =======
  import re
  
  WORD_REGEX_STR = r'\S+'
  WORD_RIGHT_BOUNDARY_REGEX_STR = r'^|\s'
  WORD_LEFT_BOUNDARY_REGEX_STR = r'\s|$'
  
  WORD_REGEX = re.compile(WORD_REGEX_STR, re.UNICODE)
  
subject: update word boundary regex to be more precise