converted Scan functions to return a Token rather than the length of the match... -sai