In casual writing, when United States is functioning as a noun (as in, “We are traveling to the U.S.”), it's a matter of personal preference. You can either spell out United States or abbreviate it, with periods or without.