change string:slice fn