Utilize try catch in lexer. Fix the id regex