update solution for scramble_string