Added a checking for input with an excess number of operands