Added a 3rd version for append_n_sstring.
Added a test for the 3rd version too.