Sanitize option group input