Clean up list [Credit to Ollj]