strange string variable behavior
<p>I have the following keys stored in web.config file</p>

<pre><code>&lt;appSettings&gt;
       &lt;add key="AdminReqEditURL" value="http://portal.joshworld.local/SitePages/EditRequisition.aspx?RID="/&gt;
    &lt;add key="ITReqEditURL" value="http://portal.joshworld.local/Services/IT/SitePages/EditITRequisition.aspx?RID=" /&gt;
&lt;/appSettings&gt;
</code></pre>

<p>In my code behind I have a function like the following from where I am reading key values and returning as a string from function.</p>

<pre><code>public string getURL(string pReqID, int pReqType)
{
    String ForAdmin = System.Configuration.ConfigurationManager.AppSettings["AdminReqEditURL"].ToString();
    String ForIT = System.Configuration.ConfigurationManager.AppSettings["ITReqEditURL"].ToString();

    if (pReqType == 1)
    {
        string theURL = ForAdmin;
        theURL = theURL + pReqID;
        return theURL;
    }
    else
    {
        string theURL = ForIT;
        theURL = theURL + pReqID;
        return theURL;
    }
}
</code></pre>

<p><strong>When I call reqid  for example 5429 with type 1 it returns</strong></p>

<pre><code>"http://portal.joshworld.local/SitePages/EditRequisition.aspx?RID=5429"
</code></pre>

<p><strong>But when I call reqid for example 5429 with type other then 1 like 0 or 3 or 4 it returns</strong></p>

<pre><code>"http://portal.joshworld.local/Services/IT/SitePages/EditITRequisition.aspx?RID=54" +
    "29"
</code></pre>

<p>I've tried reducing the length of second url and it works fine but as soon as I increase the length it returns string in strange manner. How to rectify this.</p>
