added: functions to append strings
added: tests for newly implemented functions
added: some comments
changed: variable order in some comparisons