Tweaked StrShrink - bit more flexible now