You don't actually need the "= nil" part, you can just do "local slider".
Same for lua/includes/extensions/string.lua:313