Fix clutter up class string, fixes #593

`\\s` should be `\s` (and the test doesn't have a test case for spaces on either end, btw)