How could I go about finding every different permutation of a string possible? Like, I want to be able to go through each possibility of a scrambled string:

Example:
abc goes to
abc, acb, bac, bca, cab, cba

All help is appreciated! Thanks!