fixing regex sanitization