This is a case for tokens. A token is a string with a delimiter at the end. In normal writing these are .'s to indicate sentences, a sentence is a token because . delimits them. in your case / is the delimiter. so $gettok(something/somethingelse,1,$asc(/)) will return the first token "something".