Trim extra spaces from classes in _bs_attributes_to_string()