The iffgetstr() function takes two arguments: the first is a character string (up to 128 characters) that names an existing IFEFFIT string (following the naming rules outlined in chapter 3, but with the leading '$' optional), and the second is a character string variable to hole the value. The effect is to retrieve the named string with the given value. The string variable provided should be large enough to hold the result (128 characters is a safe value, as the returned value will never be larger than that).
iffgetstr() will return the real, useful length of the string.
character*128 txt i = ifeffit(' set $text1 = "string test 1"') n = iffgetstr('text1', txt) print*, ' txt = ', txt(1:n)