Adds linefeed to end of input string