Hi Martin, >I want to $sendallref all strings ending with say "list". Something like mid($sendallref.lColsName,0,-4)) I would suggest making the condition parameter to $sendall be e.g. upp(right($sendallref.colName,4))='LIST' Kelly