Added 'sanitize' method but Is it really needed using D regular
expressions?

This is not used currently.