Handle NumberFormatException for a number like part

It failed to parse a number when it is too long. This patch treats such parts
as a string.