# Extra character in StringJoin [duplicate]

When I was trying to join a URL with a parameter and execute it with URLFetch, something unexpected happened.

Here is the code (The URL below doesn't exist and is just for illustration.)

Case 1 (Good):

"http://www.google.com/analysis/key=" <> "12345"

will give "http://www.google.com/analysis/key=12345"

Case 2 (Weird):

"http://www.google.com/analysis/key=" <> "12345678910111213141516171819202122"

will give "http://www.google.com/analysis/key=\ 12345678910111213141516171819202122"

Note that the \ is shown when copying it out. And I think that's the reason the URLFetch fails.

So how can I fix this?

## marked as duplicate by MarcoB, user9660, m_goldberg, Yves Klett, Michael E2Mar 10 '16 at 12:34

• You probably want: SetOptions[\$FrontEndSession, "ExportTypesetOptions" -> {"PageWidth" -> Infinity}]. This has been discussed in e.g. Setting output width for CopyToClipboard, of which this question is a likely duplicate. – MarcoB Mar 9 '16 at 16:28
mylongstring = "12345678910111213141516171819202122";

• In the Mathematica window it displays normally. However, an extra \  is added to the string when copying it out to somewhere else. – Louis Yu Mar 9 '16 at 16:10