Simplify the if statements used to check to see if the argument was "num"