!**********************************************************************
!*       Strip Characters from String                                 *
!**********************************************************************
!*                                                                    *
!*        INPUT: $I_string  - Input String                            *
!*               $I_strip   - Characters to Strip                     *
!*       OUTPUT: $O_string  - Output String (Stripped)                *
!*                                                                    *
!*               To de-activate this function:                        *
!*               #define STRIP_Func_Remove                            *
!*                                                                    *
!**********************************************************************
!*                                                                    *
!*      EXAMPLE: do STRIP-Func('HELLO, WORLD', 'AEIOU ', $O_string)   *
!*                                                                    *
!*      RESULTS: $O_string = 'HLL,WRLD' (Vowels/Blanks Stripped)      *
!*                                                                    *
!**********************************************************************
#ifndef STRIP_Func_Remove
begin-procedure STRIP-Func($I_string, $I_strip, :$O_String)
let $O_string    = ''
let #len         = length($I_string)
let #pos         = 1
while #pos      <= #len
   let $char     = substr($I_string, #pos, 1)
   if  instr($I_strip, $char, 1) = 0
       let $O_string = $O_string || $char
   end-if
   let #pos      = #pos + 1
end-while
end-procedure
#endif
!**********************************************************************
                                                                                              
     |