fix endswith operand