Fix test for appending characters
Add test for adding string to each line