Optimized and refactored list2text, text2list, and replacetext.
Changelog.
Merge pull request #1821 from eswordthecat/patch-7

Optimized and refactored list2text, text2list, and replacetext.