Scrambled string decryption

Basically what I have, is a string of characters. There are no spaces, and I know it was simply scrambled.

Its quite a long, but one, sentence. Is there a way to unscramble it, if I am sure there are no random letters left?

What I mean: We have a string. oindgtdchies We are comparing it to all english words possible, everytime substracting those letters. We find the word: decoding Whats left is: hist The only word that can finish it, is: this Since all others would leave behind a character.

Is there a program already for this? Any ideas how to make such?