Token-splitting utility function