fix for multiple attributes and no quotes
fixes multiple attributes with quotes
code formatting: removes trailing whitespace