Fixed issue with negative integers and floats not properly recognized from input