Distinguish numbers/boolean/undefined/null from string