slice the stack to 1 on tilde character(~)