Fixed add-classes to work when separated by spaces