fixed regex to allow spaces