Added tests for append_sstring.
Fixed a return value and made a condition shorter.
Fixed how long ifs continued on the new line.
Made sure that there really is enough lenght for a string in append_sstring.
Fixed spelling mistake.