If I type in -1 , a gets the value -1.
But if I type - 1 , a gets the value 0. (Notice space between - and 1).
I know how to fix this by accepting a char, check if number or symbol, ignore spaces and then take in the number, but is there a more elegant way to fix this?