Update scanner.scm

string transition function does not properly work