resolves #289 #291 attributes as string or array

- includes tests for properly splitting on spaces