Fixed bug when string is '0'

Found the bug and fixed it. Basically, it somehow does not look for 0 in
isIntegerLiteral and isFloatLiteral. Used isDigitalLiteral to check for
numbers in the string.