@er-emey string is like text (as opposed to number).
It means that instead of writing the number 1 , use “1” in quotation marks (i.e. the character “1” and not the number it represents).
And do so for all the other values you retrieve from the slider on change.