scramble string reimpl