Corrected the appending of characters.