if no string is passed, use URL instead