How to take string from item NBT and use in macro

When I try to do it, all that it does is store the length of the string as an int. This is my code ruby execute store result storage gbg:sounds sound long 1 run data get entity @s SelectedItem.tag.gun_shoot_sound function gbg:gun/shoot_sound with storage gbg:sounds
Continue to help post