replace and with &&