Added functionality to recognise negative number inputs over minus operators.