Added the ability to append strings, and some preprocessing