Scanner like delimiter implementation

Scanner like delimiter implementation - given a string, each charachter
in the string is a delimiter