when url is null trimUrl is not called.