Replacing 'gggg....' with random string