token invlid character check
many many bugfix
comforment to specification