tonumber returns nil if input is not parsable or nil