The following code produces a blank msgbox. When I remove all the data from the last snippit (/ti:app>) then it returns valid data. $NewCustomerData = StringReplace($chars, 539, 'login.php?key='&$CustomerID&"_"&$CustomerPin&"<width>620</width><max-width>3000</max-width>" & _ "<min-width>0</min-width><height>500</height><max-height>3000</max-height><min-height>0</min-height><fullscreen>fals