Fixed bug with spaces in generated class.