Doesnt replacing \W with space remove special characters? Or are you saying they need to be kept?