improved stash prompt trim