Adapt to removal of ~"string" syntax