Limit class names to not contain spaces

Signed-off-by: martin f. krafft <madduck@madduck.net>