# Why space is preserved in comma separated lists?

**URL:** <https://forum.ansible.com/t/why-space-is-preserved-in-comma-separated-lists/28658>\
**Category:** Ansible Project\
**Created:** [September 26, 2018, 3:29pm UTC](https://forum.ansible.com/t/why-space-is-preserved-in-comma-separated-lists/28658 "2018-09-26T15:29:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anatoly\_techtonik](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@anatoly\_techtonik](https://forum.ansible.com/u/anatoly_techtonik)\
**Post date:** [September 26, 2018, 3:29pm UTC](https://forum.ansible.com/t/why-space-is-preserved-in-comma-separated-lists/28658/1 "2018-09-26T15:29:17Z")

</div>

If I do this:

tasks:

- name: install dependencies for screenshots under i3  
apt:  
package: maim, xclip

Ansible fails:

fatal: [localhost]: FAILED! =\> {“changed”: false, “msg”: “No package matching ’ xclip’ is available”}

If space is removed, it works. Why not to strip space from lists automatically?
