Add back single quote to end of heredoc string