Is there some kind of token function available in JavaScript.? A function that would find a certain character in a big long string and return the index of or something like that.