slice string in both