It tests the user input for the first part of a URL by stripping out all but the first 24 characters, putting that in a variable 'newsub' and then triggering on the value of 'newsub'. Newsub has a default value of 'wasthisbeforeentry' to check whether it's being changed.
The code is
var player =GetPlayer();
var a = player.GetVar("TextEntry1");
var a = a.slice(0,24)
There's a test version at https://lighttouchlearning.com/test/story_html5.html
If you want to test it the 'correct' string is https://normanlamont.com
I've tried different browsers, it's the same in them all. Can anyone advise me on where I'm going wrong? (This is Storyline 2)