token regex fix
added check for undefined symbols
added strings