codegen: remove leading and trailing spaces in collectionlist template

Change-Id: I49abdb41c2f8e5995fefb28455a8dea38e271ffc
Signed-off-by: Michael pasternak <mpastern@redhat.com>