8075927: toNumber(String) accepts illegal characters

Reviewed-by: attila, sundar
2 files changed