new split function for tokens