Changed _parseDigits method implementation due FF-compatibility issues