Add quotes around mask to handle complex masks