fix error if no cat was defined and use list comprehension to also strip whitespace

i did not update the version !!