Update index.js

fixed regex to include spaces