BRANCH 4.1:
  updated extract keywords logic to allow . and replace linebreaks as empty space