Parse and stringify style attributes