Added warning for improper ending of a token