change isIP* input argument to string