case '-': if (input_string[i-1]==' ') // there is a space before the negative part { return (OPERAND); } else { return (OPERATOR); }