Fix renaming CSS classes

If a class is added in addition to other classes,
respect the whitespace between them.