more right place for implement sanitize
using case instead couple of IF