using name() instead of toString() on enums to fix whitespace issue.