Input a string with format: {operator} {num1} {num2}