@GarethEade try below:
var vAddress;vAddress = "First Line / Second Line / Third Line / IE" ;vAddress = vAddress.substring(0,vAddress.length-4) ;vAddress = vAddress.replace(/ \/ /g, "\n");app.alert(vAddress + "\n" + "test") ;
Work fine for me on all events and the master page too