Dealt with lines with two numbers, one of which is not part of the quantity

fixed quantityInfo.end by removing +1
removed line.length as end parameter in slice functions
fed getFrac enteredQuantityInfo.text instead of line