text patcher implemented. String functions moved to string_utils namespace