sanitize key, regexp fixed