Reuse space regex
Move underscore/dash replacement to stringscore.js

This allows exact matches to still be handled correctly