Fixed some bugs in Scanner class + tab/space in old script