updated main function to tokenize the cleaned urlhash