fixed regex to reduce duplicate letters and remove ^\w\s