how to remove "/"s from my text in a variable
This code should do it. Adapt it for your needs:

set x to "/1/2/3/4/5/6"
set AppleScript's text item delimiters to "/"
set y to (words of x)
set AppleScript's text item delimiters to ""
get y as string