Fixed MakeIP to handle all possible string types