Hi Olivia,
The syntax like %external%.toString().replace(/\//g,"") has to work correctly (you can test string processing in any online java script editor). SAP has confirmed the issue only with backslash '\' (note http://service.sap.com/sap/support/notes/2020845) - the correction is only about '\'
Vadim