Operate on text with operand and operator