added nan and inf as valid barewords