let Expand correctly handle single "~" input