Remove stray surrounding whitespace from class name(s).

Elements are often wrapped in a div with `class=" form-group "`. This simply trims the extra whitespace around the class names.