[Backend] Added various methods to sanitize lists.