fixed switch in eval function to switch on char rather than string