Added regex to replace non word characters with space.