Adding option to get current token based on separator chars and not valid chars.