Sanitize the given values correctly.