Why `/\s+$/`? We're checking for space between class attributes, not checking trailing spaces.