Instead of blindly trying to convert the parsed string to an integer, check before-hand whether the string contains digits.
Tagging: @sroe
ATLITKSW-297