reduced whitespaces and duplicates when setting styleClass, check for change.

Opinions? I modified this method before adding add/remove class ones because then those others could probably be simplified (eg. addStyleClass could just concatenate a string).