Retrieving an original string by brute forcing