Ensuring generated instance variable name is valid