Protects against trying to set empty class names
Tests for text before testing for chars in text
Merge branch 'master' of https://github.com/cruncher/sparky