I tried it myself, but the block throws an error when you input only one character in one of them, and always reports 1 when you don't.
What exactly is it supposed to do?
Report a percentage between 1 and 0(?) telling how similar the two strings are, I think.
It shouldn’t be saying the variable matrix doesn’t exist, there’s a script variable block right before it…
Edit: Just noticed, it says “Error” instead of “Inside: Error”. That means the variable matrix is being called outside of the definition.
Your algorithm calculates Levenshtein distance at the first step. So you fill the matrix with editing distances. But you create only the first row and first column for other rows.
Creating the "matrix" this way should help (also some range shift)


