Permutes all characters of a string