This is quick and dirty. Copy/paste is probably broken, as is deleting whole selections of text.
(Source string)
(Your letter pool)
(Your new string)