Sanitization and input control